Hi, the reason for your back is improper posture. You must have bent suddenly because of which you have got back ache. It could be a muscle spasm too. However, it would be better if you meet a Physiotherapist who will assess you in detail and prescribe you exercises/ treatment.
Health Tips
Avoid bending forwards, lifting weights, and avoid turning and twisting activities. Wishing you good health and a speedy recovery