If you have back pain with spasms then you need to get investigated for deficiency of potassium, calcium, sodium, magnesium, vitamin B complex, or vitamins B1, B3, or B6 and Vitamin D. Get your kidney function
, parathyroid gland function
and adrenal function
tests done because these affect the electrolyte balance in the body. Stress, alcohol, caffeine and fatigue all cause similar symptoms.
Hence if you take alcohol or coffee then cut this down. Sleep at regular hours and see if it helps.