Your neck pain could be due to neck muscles strain.
You should give hot water fomentation for 15-20 min twice a day for three days.
You can use Volini gel or spray to the site provided you are not allergic.
You should do neck stretching and mobilization exercises with proper guidance.
Next Steps
Avoid lying on your stomach, instead you can lie on your back or sides.
Avoid using high pillow.
Avoid using gadgets in prolonged flexion.
Health Tips
If the pain persists or aggrevates you need to consult a Physician or Physiotherapist or Orthopaedist for further evaluation and treatment.