BOSTON -- David Lough tripled to lead off the 12th inning and scored on J.J. Hardy’s single as the Baltimore Orioles recovered after blowing a five-run lead to beat the Boston Red Sox 7-6 on Sunday.

Brad Brach (4-0) earned the victory with three innings of scoreless relief. He allowed one hit and one walk while striking out four. Zach Britton pitched the 12th for his 14th save.

Edward Mujica (2-4) worked a scoreless 11th before Lough lined a triple to the center field wall leading off the 12th. The next batter, Hardy, bounced one through the left side of the infield to give the Orioles the lead.

Hardy and Nelson Cruz each had three hits for Baltimore, which has won six of seven. Cruz had five hits Saturday in the second game of a day-night doubleheader and hit safely in seven straight at-bats before flying out in the fifth.

David Ortiz had four hits and Dustin Pedroia added three for Boston, which trailed 6-1 before scoring five runs in the seventh to tie it. Ortiz lined the ball to the left-field corner with one out in the 12th, but he was thrown out trying to stretch it into a double.

The Red Sox have lost five of six and fallen a season-worst 10 games below .500. Boston center fielder Jackie Bradley Jr. had two hits, threw out a runner at the plate and made a leaping catch to end the top of the ninth.

The Orioles scored in the fourth against Jake Peavy after Cruz led off with a double and scored when third baseman Xander Bogaerts fielded Delmon Young’s grounder and threw it into the stands behind first base. Young made it 2-0 in the sixth when he was hit by a pitch to lead off the inning and eventually scored on Caleb Joseph’s sacrifice fly.

Boston cut it to 2-1 in the bottom half on Ortiz’s RBI single through the shifted infield. Baltimore scored four in the seventh on six singles and catcher David Ross’ error on a play at the plate.

After Stephen Drew struck out to start the bottom half, Ross homered and then the next four batters singled to make it a 6-4 game. Pedroia struck out, then Brian Matusz was brought in face Ortiz, who was 1 for 22 with 13 strikeouts in his career against the Orioles lefty.

Ortiz singled to make it 6-5, then Mike Napoli singled off Tommy Hunter to tie the game before Drew struck out to end the inning.

Yankees 9, Twins 7

MINNEAPOLIS -- Jacoby Ellsbury homered, doubled and drove in four runs as the New York Yankees took a huge lead, then held off the Minnesota Twins 9-7 Sunday.

Down 9-0 in the fourth inning, the Twins began rallying and eventually and brought the potential winning run to the plate with two outs in the ninth. Kurt Suzuki grounded out with runners at the corners to end it.

Before the game, the Yankees traded lefty Vidal Nuno to Arizona for right-handed starter Brandon McCarthy. New York also cut outfielder Alfonso Soriano.

Derek Jeter and Ichiro Suzuki each had three hits for the Yankees, who have won 14 of 18 overall at Target Field.

Jeter drove in two runs and also fielded Suzuki’s grounder to finish off the win. This was Jeter’s last scheduled game in Minnesota, although he’s expected back later this month for the All-Star game.

Yankees closer David Robertson allowed a run on three hits in the ninth while posting his 21st save in 23 chances.

New York had lost nine of 11 before arriving in Minnesota. Catcher Brian McCann returned to the lineup after missing two games because of a sore foot and doubled home Jeter in the first.

Ellsbury’s three-run homer off Ricky Nolasco (5-7) capped a four-run burst in the second that made it 6-0.

Nolasco (5-7) lasted a season-low two innings as Minnesota lost for the 10th time in 13 games.

Hiroki Kuroda (6-6) allowed four runs in 5 2/3 innings.

Trevor Plouffe had an RBI double in the fourth and Chris Colabello followed with a two-run homer, his second home run in three games since being recalled from the minors.

Plouffe added a solo home run in the eighth.

Mets 8, Rangers 4

NEW YORK -- Zack Wheeler breezed into the seventh inning, Anthony Recker hit a three-run homer in a five-run first and the New York Mets beat the Texas Rangers 8-4 Sunday for a series win.

Lucas Duda had an RBI double and Juan Lagares a run-scoring single in the Mets’ biggest opening inning of the season, with all the runs scoring with two outs. New York then got only one hit off Nick Tepesch (3-4) until Kirk Nieuwenhuis led off the sixth with a long ball to right field.

Daniel Murphy’s RBI double in the seventh made it 7-1, but reliever Gonzalez Germen allowed Alex Rios’ first homer in 46 games and Leonys Martin’s two-run drive before getting an out in the eighth.