Systemic illnesses like diabetes, anemia (low red blood cell count), kidney disease and thyroid and other hormone issues are also potential causes of muscle spasms. Diseases of the nervous system, such as multiple sclerosis or spinal cord injury, can be associated with muscle spasm.. There are a variety of causes of muscle spasms, and each cause depends on certain predisposing factors and anatomic areas of involvement.