A physical therapist can teach you proper stretching and strengthening exercises to prevent future spasms. Yoga and Pilates can also help improve flexibility and back strength. Preventing Back ...