If your neck pain is acute, it might benefit more from cold-therapy. If it's been around a while, and you've consulted with your medical professional to make sure it's ok - you can apply heat therapy to a sore neck. It often can help as part of an overall strategy:
Heat Therapy
Massage
Movement
Stretch Exercises
Strength Exercises
Cold Therapy
Bracing