Linked Evolution of Gas and Star Formation in Galaxies Over Cosmic History