A sudden, awkward movement can strain the neck. This often occurs with falls or car accidents or during certain sports. Everyday activities like working on a computer or sleeping can also cause neck strain if they force you to hold your neck in an awkward position for a long time.
It is common for neck pain to get worse for a day or two after an injury, but it should start to feel better after that. You may have more pain and stiffness for several days before it gets better. This is expected. It may take a few weeks or longer for it to heal completely. Good home treatment can help you get better faster and avoid future neck problems.