It depends.
It could be something going on entirely within the muscle where it screws up its management of calcium ions or some other part of the chemical system it uses to mediate contraction and relaxation. However, it could also very easily be an issue with your brain and nerves telling your perfectly well functioning muscles to do that.
Latest Answers