PITTSBURGH (AP) - Aramis Ramirez had three hits, including his 350th career home run, and drove in four runs as the Milwaukee Brewers edged the Pittsburgh Pirates 7-6 on Tuesday night.
The 16-year veteran third baseman helped stake the Brewers to a 5-0 in the fifth inning, but the Pirates rallied to tie it in the sixth. But Milwaukee pulled out the win when rookie pinch-hitter Caleb Gindl hit a tiebreaking sacrifice fly in the eighth inning.
With the game tied 6-6, Rafael Betancourt hit a one-out double off Bryan Morris (5-7) and took third on Scooter Gennett's single. Gindl then lifted a fly to right that scored Betancourt and gave the Brewers their third victory in four games.
Pittsburgh, which entered the day one-half game behind St. Louis in the NL Central, lost its third in a row.
Milwaukee's Norichka Aoki reached base in all five plate appearances, with two singles and three walks. Jonathan Lucroy added three hits, and Gennett had two.
Pedro Alvarez went 4-for-4 with a walk, and hit his NL-leading 32nd home run for the Pirates. Neil Walker had a three-run homer among his two hits. Andrew McCutchen, Andrew Lambo and Felix Pie also had two hits.
Earlier Tuesday, the Pirates acquired right fielder Marlon Byrd and catcher John Buck from the New York Mets to bolster an offense that ranks 24th in the major leagues in runs. Both players are expected to join the team on Wednesday.
With the Pirates down by a run, McCutchen doubled and Alvarez walked with one out in the ninth, but Jim Henderson held on for his 22nd save in 25 opportunities.
Rob Wooten (3-0) allowed Alvarez's homer but pitched 1 1-3 innings for the win.
Both starting pitchers had rough outings. The Brewers' Kyle Lohse gave up five runs and 13 hits in 5 1-3 innings. Pirates All-Star left-hander Jeff Locke was tagged for five runs and eight hits in 4 2-3 innings.
Lohse had been 4-1 with a 2.05 ERA in seven starts since the All-Star break.
Locke's struggles continued as he has allowed 16 runs and 23 hits in 11 1-3 innings in his last three starts. Over his last seven outings, he is 0-2 with a 7.02 ERA.
Alvarez tied it 6-6 by lining a solo home run off the right-field foul pole, snapping a tie with Arizona's Paul Goldschmidt for the league lead.
Milwaukee had gone ahead by a run in top of the inning when Ramirez lined a two-out RBI double to center that scored Lucroy, who had singled.
A first-inning run scored when Ramirez grounded into a double play. He hit a solo home run, his eighth of the season, with one out in the fourth. After Lucroy hit a two-out RBI single in the fourth, Ramirez followed with a two-run double that put the Brewers up 5-0.
The Pirates came back to tie it with four runs in the fifth and one in the sixth.
Pie drove in the first run with a pinch-hit double and, one batter later, Walker hit his ninth home run, a three-run shot that carried over the right-field stands.
Pie, who remained in the game to play left field, made it 5-5 in the sixth with a run-scoring single.
NOTES: Pittsburgh LF Starling Marte was examined by hand specialist Thomas Graham on Tuesday and no structural damage was found in his bruised right hand. Marte, on the disabled list since Aug. 19, was told he can't swing a bat for at least two more weeks. . Milwaukee rookie LF Khris Davis' 11-game hitting streak ended as he went 0-for-5. . Pirates 1B Garrett Jones did not start but his slump extended to 1-for-34 when he flied out with the bases loaded in the sixth inning as a pinch-hitter. . LHP Tom Gorzelanny (3-5, 3.60) will start for Milwaukee on Wednesday night against RHP Charlie Morton (5-3, 3.42).
(Copyright 2013 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.)