According to a 2020 study, latex and memory foam make the best types of pillows for neck pain. This is due to the fact that this material supports the neck, which can increase sleep efficiency.