It could also be muscle pull that can be treated by applying local analgesic creams. It could also be costochondritis, which
causes pain and tenderness at points where your
ribs attach to your breastbone. The inflammation around the joint area gives sharp pain on taking a breath. This can also cause tenderness on pressing the area which pains. An orthopedic doctor can diagnose this for you. Generally there is no cause. However it can be due to infection, blow, injury, or fibromyalgia.