PHOENIX — Wilmer Flores' grand slam highlighted a six-run outburst in the third inning and the San Francisco Giants snapped a six-game losing streak with a 9-3 win over the Arizona Diamondbacks on Wednesday.
Heliot Ramos added a two-run homer in the third off Jordan Montgomery (3-4), whose ERA rose to 6.80 in his ninth start since signing with the Diamondbacks late in spring training.
Ramos reached base six times with two hits and four walks. Flores, who had one home run in 50 games entering Wednesday, added a sacrifice fly in the ninth for his fifth RBI, and Jorge Soler homered in the eighth off Brandon Hughes as the Giants moved into third place in the NL West, a half-game ahead of the Diamondbacks.
''I've never walked that many times (in a game), not even in the minor leagues," said Ramos, who's batting .304. "(I'm) trying to attack the right pitch, make the right decision.''
Giants manager Bob Melvin said of Ramos, ''He's just so balanced. When you're hitting like he is you want to swing. They're deep counts. It's really cool to watch.''
Montgomery threw 61 pitches, 33 strikes, in two-plus innings. The 31-year-old left-hander faced seven batters in the third inning and didn't record an out, allowing six earned runs and seven hits. He walked three and struck out one. Montgomery and reliever Logan Allen combined to throw 53 pitches in the third.
''Another stinker,'' Montgomery said. ''It just unraveled in the third inning. It's hard to see any positives right now.''
Giants starter Jordan Hicks also struggled, lasting only into the fourth despite the big lead. The 27-year-old righty was pulled with two outs after walking Joc Pederson and forcing in a run. Sean Hjelle relieved and retired Lourdes Gurriel Jr. on a ground ball to end the inning.