hi,
thanks for the brief history.
as you mentioned you had a capsulitits in the past for which you have undergone the therapy and now you facing same pain in both shoulder. Since the pain is in the arms as well it is to be checked once. there are couple of possibilities like - adhesive capsulitits, bicepital
tendonitis, trapezitis, pinched nerves. Only on examination we can come to a conclusion.
Since you mentioned you have a restriction of ROM of the shoulder it can be due to
stiffness of joint or may be a muscle stiffness/weakness.
Also, you can perform some slow neck exercises to strengthen the muscles of the neck. Perform ROM exercises for the shoulder while lying down on the floor as it will be free of gravity and the ROM will be a bit easy. Post that slowly strengthening the shoulder girdle , arm muscles and then chest with upper back muscles will help produce more input to your overall strength.
If you find difficult to perform than you can take the help from a physcial therapist and later you can perfrom at your own.
With the grace of God I wish you a speedy recovery
Regards
Jay Indravadan Patel