There might have been acute muscle spasm in lower back muscles which is causing the pain.
Next Steps
You need to take bed rest, start with hot fomentation, take analgesic with muscle relaxant tablet, apply analgesic ointment locally.
Health Tips
Avoid heavy work, avoid sitting down, avoid forward bending...