most of the time neck pain is because of bad posture or functional stress which Leeds to neck pain, if pain is radiating down to hand needs examination and further evaluation, medicine are given for having some relief, but recovery will happen with rest and time, once recovered you need to focus on improving muscle strength and some precautions
Next Steps
good posture, good exercises, healthy life style will benefit you on long run.