It may be alarming, but neck pain is usually caused by bad sleeping posture, tension, stress, or poor body posture. Neck stiffness and soreness may also occur after an abrupt neck injury, such as whiplash in a motor vehicle accident or shocks like a fall or a sports accident.