Hello.
Thanks for posting your query.
From description it seems, you might suffering from cervical strain.
I suggest you to consult an orthopaedician nearby for a detailed examination.He or she after diagnosing the condition may refer you for
physical therapy. The physical therapist will help you reduce your pain using stretches. The therapist will show you how to do exercises that make your neck muscles stronger
You can take
analgesic and
muscle relaxant after discussing with your doctor.
You also need some life style modification like-
Do not sit for prolonged period of time in stressful postures
Do not lift heavy weights on head or back
Do not turn from your body but turn your body moving your feet first
Do turn to one side while getting up from lying down
Do the exercises prescribed regularly
Do use firm mattress, thin pillow or butterfly shaped pillow
Wishing you good health
Regards.
Dr Saurabh Gupta