If you have back pain and it's keeping you awake at night I would recommend taking some pain reliever medication that also helps you sleep.
Try some Tylenol PM as I find it helps relieve my back pain when I have back pain and helps me drift off to sleep as well.
You can also use a heating pad to help relieve back pain or try some pain cream or a back brace.