Gas and Star Formation at the Peak of Cosmic Star Forming Activity