Hello
Pain can be due to muscle spasm in cervical and shoulder region and nerve compression in cervical area. Apply hot water fermentation followed by any muscle relaxing ointment.
Do some mobility exercises for neck and shoulders.
Like shoulder shrugging, shoulder rotations, look up and down, neck isometrics.
Next Steps
Avoid bending your neck,if you work on laptop then place it at your eye level with back rested.
Health Tips
Regular physiotherapy treatment will be more helpful.