Since how long is the pain?
Is there pain when you move your upper back or shoulder?
Were any investigations done?
Any significant past medical or surgical history?
Are you diabetic, have high blood pressure, are sedentary, stressed, over weight, smoker, take alcohol?
Is your cholesterol or lipid profile normal?
Following are the possibilites for your pain;
A) Costochondritis; it is inflammation at the junctions of rib and cartilage or with the breast bone / sternum. Local analgesic ointment, or spray, chest brace and warm compresses with Ibuprofen is helpful. Another possibility is muscle sprain. Please read about the costochondritis; http://www.mayoclinic.com/health/costochondritis/DS00626
B) Pinched nerve in the neck can also cause chest pain. A physical examination by a doctor is usually able to give concrete clues to the diagnosis. C) Myofascial trigger point; they may develop after an initial injury to muscle fibers. This injury may be a noticeable traumatic event (say violent cough) or repetitive microtrauma to the muscles. Myofascial trigger point is a hyperirritable spot, usually within a taut band of skeletal muscle or in the muscle fascia which is painful on compression. The treatment is following; 1) passive stretching of the affected muscle after application of sprayed vapocoolant 2) physical therapy3) deep electrotherapy; iontophoresis, phonophoresis, short wave diathermy, electrical stimulation4) local analgesic patch / ointment / spray5) anti-inflammatory analgesics; Ibuprofen (Motrin / Advil)6) ischemic compression therapy; pressure on the points7) massage8) steroid shots9) acupuncture
Please feel free for your follow up questions.
I would be happy to assist your further, if you need any more information.
Musculoskeletal problems may be painful on specific angles of movements and can be off and on. Muscle fiber and ligament problems are known to vary in duration and intensity. You may consider a chest x-ray and an EKG to rule out any association with heart or lung, for the cautionary reasons.
It is privilege assisting you.