Because of bad posture and lack of excercise upper back muscles go under spasm and pain.
Next Steps
Need posture correction and stretching of upper back muscles, for that visit physiotherapist.
Health Tips
avoid continue work on laptop or computer. Take breaks in between.correct your sitting nd sleeping posture.