Hello and Welcome to ‘Ask A Doctor’ service.
I have reviewed your query and here is my advice.
Probably you have a neuromuscular problem of the neck.
It might be caused from a
herniated disc of cervical column, this is a very common condition.
You can take
ibuprofen 400 mg three times a day for some days to relieve pain,
-you can also consider using
cold ice packs,
-practice keeping a good posture of neck,
-learn different exercices,
-you can try slight neck stretching
Hope I have answered your query.
Let me know if I can assist you further.