Other minerals like magnesium, calcium, and vitamins like vitamin A, vitamin E, etc., also help maintain fluid balance within the cell walls, thereby not permitting them to go into a spasm. Their deficiency can trigger this condition, so it's important to have a healthy balanced diet.