What is causing my back leg and shoulder to pain?

Hard to say. The list of possible causes is large. Without seeing and examining you would not be able to tell you very much. Causes can be muscular, bone, nerve, and a host of other things. Best to see your doctor for evaluation. Sorry this not more helpful. Thanks for using Healthtap and best of luck with this issue. Dr R.