Does sleeping on the floor help your back if you already have pain?

It can help. If your mattress sinks a lot and your pain is from alignment at night, a firmer surface might help. You should always ask a doctor about back problems before making changes.