If ur not maintaining posture and ergonomic it leads to neck muscle spasm and strain.
Visit nearby physiotherapy clinic for proper assessment and treatment,take electrical modalities to reduce spasm and pain.
Next Steps
After reducing pain start doing isometric to neck muscles, maintain proper posture avoid sitting for a long time.i.e get up from ur work place after 20 mins have a walk for 10sec in that way u can maintain posture
Health Tips
hot water application 3-4 times a day for 15 mins