Evolution of Emission Line Properties And Metallicities of Star-Forming Galaxies Up to Z ~ 3