sir. i suspect you might have frozen shoulder
it prsents in three different stages each of 2 months duratiuon for 6 months.
For it treatment is Rest, ice fermentation, analgesics and physiotherapy
After decrease of pain you ca do shoulder exercises.
you ca also have a shot of intraarticular steroid
and last is manipulation under general anesthesia