Recovery from a shoulder injury, broken arm, or stroke can cause immobility, a risk factor for developing a frozen shoulder. Talk to your doctor about exercises you can do to keep your shoulder flexible if you've suffered an injury that limits your motion.