The most common cause of a stiff or painful neck is a muscular stiffness brought on by sitting in a cold draft, sleeping in an awkward position, or engaging in an exercise or activity that you are not used to. Within a day or so, this kind of problem should be resolved on its own. Consult your doctor for advice if pain and/or stiffness persist or worsen; you could need medical treatment.