When my neck hurts it usually helps to bend it in the angle which hurts the most, stretching the guilty muscles out and holding that position for a while.

Either that or I take a knife to my spinal cord.