The same thing happened to me a couple months back. Luckily, it happened the first day of a trip to the Hot Springs.
A heating pad works well (so does soaking in hot springs!)
That was the first time I've had anything like that happen, and I was actually quite scared. I couldn't move my neck...