The first thing you need to do is relax. This is a common problem and stressing out mentally is only going to make the pain worse. It often occurs when people wake up, potentially due to sleeping for a prolonged period in an awkward position. Other causes include:
Realize that the pain will likely subside by itself given time and care. If it lasts longer than 48 hours it may be worth checking with a doctor.
Many people who suffer an episode of acute torticollis will readily admit that their neck is generally in and out of stiffness and soreness; it is a byproduct of their lifestyle. But it doesn't have to be this way! At our office in Milpitas, we help people come to terms with the behavior that is causing a stiff neck and how their daily actions decide how their neck feels. We can provide chiropractic adjustment and other hands-on modalities to improve nerve function and range of motion and show you stretches that can be done from literally anywhere that will protect the mobility of your neck and prevent pain.