Most neck pain only lasts a few weeks. There are things you can do yourself to ease it, but see a GP if it doesn't go away.
Try either of these:
You can also buy heat or cold packs from a pharmacy.
The most common causes are: