This is common problem seen in people who work on computer for long hours. This results into faulty neck posture cause nerve to get irritated and leading to pain.
Next Steps
Please use correct ergonomic working desk if you work on computer for long hours. For now apply ice on your shoulder and neck. Do shoulder shrugs, chin tucks and shoulder retraction exercises.
Health Tips
Avoid using soft and thick pillow