Shoulder pain may be caused by capsulitis, bursitis, tendonitis, injuries/ tears, joint subluxation/ dislocation, arthritis, periostitis etc. The elbow pain
could be related to the neck and shoulder pain
or could be caused due to an unrelated reason like epicondylitis, tendonitis, dislocation, fracture etc. It would be best to get this evaluated by an orthopedician for an accurate diagnosis and appropriate management. Meanwhile you may try immobilizing the arm and giving it adequate rest.