The causes of muscle spasms in the rib cage include injuries to the chest, rib fracture, inflamed rib cartilage, diseases such as osteoporosis and inflamed lining of the lungs as reported by Healthline. Symptoms of muscle spasms in the rib cage include sharp pain when breathing or during movement.
Treatment for rib cage pain depends on the intensity of pain. Rib cage pain may be as a result of minor injury, such as a bruise. To reduce swelling, use a cold compress on the region. Over-the-counter medication such as Tylenol or a compression wrap can also relieve the pain, according to Healthline.