This sounds like a very unpleasant way to wake up! There are many things that could explain these symptoms, and the best way to figure out what is causing your symptoms is to visit a primary care physician
for an exam. Your doctor
will want to discuss your health history, as your age, gender, and prior health history are very relevant in considering these symptoms. In addition, he or she will also want to talk more about the sensation you are experiencing in the morning. The location and description of the pain will be important to determine, in addition to any other associated symptoms you might be experiencing. For example, are you also nauseous in the morning or does the pain radiate down a limb or your spine? Finally, it will also be important to include a physical exam in this assessment. Can the pain be reproduced in the office when you take a deep breath, or is it only in the mornings? Do you have an area that is tender to palpation, possibly suggesting a musculoskeletal explanation for these symptoms? Are there any abnormalities on your heart, lung, or abdominal exam that might suggest an explanation?
There are an almost limitless number of things which could cause a symptom like this, so you should definitely make an appointment with your doctor right away to work at getting to the bottom of it.