How to get a flexible back and get rid of back pain?

How to get a flexible back and get rid of back pain? We all want a flexible body so...