Such symptoms, can be commonly due to bad posture, neck muscle sprain. If so it usually subsides with a few days mild anelgesics with Antacid and rest and hot fomentation.
Sometimes it can be due to compression of nerves in the spine.
Health Tips
If pain persists beyond 3 days then consult a Neurospine specialist.