Gee pitched effectively into the seventh inning, Lucas Duda hit one of three Mets homers and New York scored the most runs allowed by Shelby Miller in his young career for a 5-1 win over the St. Louis Cardinals.