Depends on cause.
Is the pain acute or chronic? Always use conservative measures before going onto more involved treatements.
Pt/exercises to stretch and strengthen the paraspinal musculature is key to keeping the back healthy. If these fail, more therapeutic modalities at pt can be tried, along with medication treatments, and sometimes, injections into the parts that are causing the problems. Check with your doc.