I have back pain at times and I switched to a memory foam mattress and it has helped my back tremendously and I get much more sleep at night.
If you're having back pain and sleep on a spring mattress I recommend switching to a memory foam mattress as I'm sure your back will feel much better sleeping on the memory foam mattress.