Five years ago I ended up on crutches due to sciatica. A wonderful NHS physio helped me to minimise the pain, then the stand up tall again and then to recover movement and flexibility.
I learned a few important lessons. First, resist the urge to curl into a ball and weep. You need to stretch out, especially when lying in bed. Second, exercise, don't mope around, get into the gym or onto a mat and exercise. Third, work on core strength. Those stomach muscles are the antidote to back pain.
All of this is general, of course, and you might have some damage that needs treatment. I'd recommend a session with a good physio as a starting point.
Like Jj, I have found running to be very important. I sometime wake up with some pain either in my lkower back or around the neck and shoulders but a run soon sorts it out.