Kevin Pillar hit a three-run home run in the 12th inning, lifting the New York Mets over the San Francisco Giants 6-2.