Chronic back pain

Patient: I often wondered when i will lie flat on my back i would feel pain when i try to get up. This happens all the time and i suffer for 5 years now, i sleep on my side and usually i get cramps on myylower back sides so ii wake up every night and switch my position. i wonder what causes this and what would i do to stp this condition?