Sleeping on your back is one of the best positions for back pain, while lying on your stomach is one of the worst. Back sleeping mimics your position when you stand up straight, keeping your spine aligned. Stomach sleeping can cause your spine to stretch out of alignment, worsening back pain.