This occurs when the cartilage that connects the ribs to the sternum or to each other becomes weak or damaged, allowing the ribs to move or slip out of their normal position and push on the nerve.