If you suffer from migraines, headaches or pain in the face, neck, shoulders, or upper back, your temporomandibular joints (TMJ) may be the cause. These joints connect the jawbone to the skull and are responsible for opening and closing the mouth. If these joints come out of alignment, any number of discomforts may result.