The Effects of Environment on the Atomic and Molecular Gas Properties of Star-Forming Galaxies