Its because of the prolonged neck bending/sitting /travelling /computer work /table work /studies. Cervical muscles become weak due to overuse and creates pain.
Next Steps
Go to a physiotherapist.. Ultrasonic therapy +IFT +Heating therapy +some strengthening as well as stretching exercises will be helpful for sure.
Health Tips
At home.. Rest +hot water fomentation +pain killer gel +no long sitting /travelling /driving /neck bending +no weight lifting +no manual exertions +no cold exposure +correct posture (sit tall).