Age sucks.
for me, the cause is usually a muscle in my back that cramps. I get my wife to find the knot in my back (a hard spot in the muscle that feels like a little knot) and press on it so hard that the knot opens up. Pressing the knot is very painful, but That fixes the neck pain pretty much immediately.
also, as has been said, stretching and movement is a must.