Sleeping on your stomach is probably not the best position if you have back pain, though a pillow under your legs can help. If you sleep on your side, try a pillow between your legs to relieve discomfort.