3. Dehydration
Dehydration has long been associated with muscle cramps and spasms. Dehydration leads to the depletion of electrolytes. Low electrolytes can definitely cause muscle spasms and cramping. Your muscle cells require certain things in order to stay healthy. You have to make sure that they are getting enough water which requires you to drink enough water during the day.
Most people do not get nearly enough water anyway, but if you are having back spasms, then you definitely want to increase your water intake considerably. You also have to make sure that your muscle cells are getting enough glucose, sodium, potassium, calcium, and magnesium. These different nutrients allow for the proteins to create a proper contraction of the muscles.
When one of these nutrients is in short supply, then it can cause muscle spasms because the contracting of the muscles is no longer organized and is rather chaotic. Muscles will first become irritable when missing one or more of these nutrients and then they will develop spasms.