Waking up with a pain in your neck is, well, a pain in the neck. You know it probably came from you sleeping “funny,” but what exactly does that mean? The answer starts with a quick anatomy lesson. Your spine is made up of three parts: the lumbar, thoracic, and cervical spines. The cervical part is at the top, and it’s essentially what you know as your neck.