what cause muscle spasms
Muscle spasms and cramps can also be caused by neuromuscular disorders, such as multiple sclerosis or a spinal cord injury. Movement disorders called dystonias also lead to forceful contractions. Dystonias can also be a complication of stroke. Certain medications can cause involuntary muscle contractions as well.
In some cases, a medical condition can cause muscle cramps. These conditions include: 1  spinal nerve compression, which can cause muscle cramps in your legs when walking or standing. 2  alcoholism. 3  pregnancy.