I recently had pain in the right side of my chest along with pain between my shoulder blades and neck pain. I had a horrible cough from allergies that lasted several weeks. My doctor told me that the cough had inflamed the muscles in my chest.
My mom used to have sporadic pains from under the rib cage that lead to back later found to be gallbladder stones, but everyone is different. Have it check, by a doctor.