Sudden movement of the neck muscles can also result in pain. This can happen during exercising. Make sure to stretch before exercising and extend the muscle slowly.