Food for stars: The role of hydrogen in the formation and evolution of galaxies