You may have a herniated disk. Also, a lack of flexibility can cause cramps in all areas of the body. Also, sleeping wrongly may cause undue back problems.
This is a problem for a doctor. I would think that it could be gastric to injury to discs. Does it occur after eating a meal or is it constant. Writing down your daily meals and activity will help you and your doctor discover the cause of your back cramps.