The Mets scored three runs in the ninth inning to come back and defeat the San Francisco Giants, 4-3, snapping a five-game losing streak in dramatic fashion.