Shoulder pain with rotation

Patient: My shoulder will not rotate all the way around. It gets to about straight up in the air then it slingshots down to the side. What could be wrong with it?

Symptoms: Pain(sharp during activity and dull during rest), uncomfortable to sleep

Doctor: