A foam mattress will give you evenly distributed body support, making it generally a better choice for sleepers with back pain. However, whether you go for spring or foam, make sure that you find a mattress with the right firmness for you. If you find foam too soft, which can cause your body to sink into a bad sleeping posture, look for a firmer type of foam or get a spring or a hybrid mattress.