Can you please tell, since when you are having the problem?
You can visit to an Orthopaedic doctor or a Physiotherapist.
Next Steps
Apply ice or hot pack painful area.
Perform neck isometric exercises.
Apply pain relieving gel.
Visit to Physiotherapist for cervical traction or other modalities.
Take oral painkiller medications.
Health Tips
Avoid too much screen time.
Avoid pillow under neck while sleeping.
Take frequent rest while work.
Avoid jerky neck movements.