If you have pain with shoulder movements than their is problem in your shoulder but if Movements are painless it can be referred pain from cervical spine, Need evaluation , after evaluation medicine can be prescribed along with right physiotherapy and right posture.
Next Steps
Need evaluation to differentiate between cervical and shoulder problem.