Wilmer Flores hit a two-run homer with two outs in the ninth inning to send the San Francisco Giants over the Philadelphia Phillies, 5-3, on Sunday for a three-game sweep.