Put yourself in motion. Exercise keeps your muscles flexible and strong. To keep your muscles strong, work them with light weights or exercise bands a couple of times a week. If you get a muscle spasm in the middle of your routine, stop and wait a few minutes for it to relax. You should also stop if you feel any pain. Exercise should never hurt.