I've had shoulder pain from a Shoulder Impingement/ Burtsitis/ Tendonitis. For me there is most pain with upper movements. At times, it can be tough to find a comfortable sleeping position.
If the pain continues or any loss of range of movement, you should consult a doctor. My doc first recommended anti-inflammatories and ice when I started having pain.