Did you wake up the other day like this? Any strenuous exercise? Have you tried stretching your neck?

Maybe your experiencing some pulled muscles, in which the only way to really keep loose is by stretching. It hurts, but afterwards you feel much better.

Or you could have a pinched nerve in your neck, where the nerve is being pushed on because of swelling, causing the pain.