The right mattresswill support your posture and ensure a good spine alignment while sleeping. This will keep various health problems, such as neck pain and back pain at bay. Mattresses may come in different types, such as open-coil, memory foam, and latex foam.