Boston Red Sox's Dustin Pedroia slides into home plate, scoring on a wild pitch by Texas Rangers reliever Matt Bush during the ninth inning of a baseball game in Arlington, Texas, Friday, June 24, 2016. The Red Sox won 8-7. (AP Photo/LM Otero)
Boston Red Sox's Dustin Pedroia slides into home plate, scoring on a wild pitch by Texas Rangers reliever Matt Bush during the ninth inning of a baseball game in Arlington, Texas, Friday, June 24, 2016. The Red Sox won 8-7. (AP Photo/LM Otero) Credit: ap — LM Otero

Arlington, Texas — Mookie Betts hit a two-run homer in the ninth inning and Dustin Pedroia scored the tiebreaking run on a wild pitch as the Boston Red Sox rallied for an 8-7 win over the Texas Rangers on Friday night.

Betts’ 15th homer came with two outs off Matt Bush (2-1), who had just taken over after pinch-hitter Sandy Leon had an RBI double on the 11th pitch of his at-bat against Jake Diekman. Pedroia then walked, went to third on Xander Bogaerts’ single and came home on the wild pitch.

The Red Sox trailed 6-0 early after starter David Price allowed 12 hits in only 2 innings.

Heath Hembree (4-0) worked a scoreless eighth before Koji Uehara struck out the side in the ninth for his second save.

Orioles 6, Rays 3

Baltimore — Adam Jones homered to ignite a four-run sixth inning, and Baltimore defeated Tampa Bay to extend the Rays’ losing streak to eight games.

Manny Machado of the Orioles marked his return from a four-game suspension by hitting his 18th home run in the eighth. Machado received the suspension for charging Royals pitcher Yordano Ventura on June 7.

After falling into an early 3-0 hole, the Orioles finally got their first baserunner against Matt Moore (3-5) in the fifth inning and turned the game around in the sixth.

Yankees 5, Twins 3

New York — Dellin Betances, Andrew Miller and Aroldis Chapman combined for three innings of perfect relief for the second straight game, Rob Refsnyder hit a tiebreaking single and New York took advantage of three errors to rally past Minnesota.

Masahiro Tanaka (5-2) beat the Twins for the second time in seven days, allowing three runs and seven hits in six innings.

New York’s “No Runs DMC” relief trio improved to 11-0 when all appearing together, with Chapman striking out three batters on 11 strikes — for his 14th save in 15 chances. His first 10 pitches were all 100 mph or more on the scoreboard before freezing Kurt Suzuki with a changeup for a called third strike.

None of the three relievers have allowed a ball out of the infield in their last two outings.

Astros 13, Royals 4

Kansas City, Mo. — George Springer hit a grand slam and a triple in Houston’s nine-run first inning against Edinson Volquez, and the Astros routed Kansas City.

Springer finished with five RBIs, and Colby Rasmus had four hits, including a homer in the eighth, scored three runs and drove in two.

Indians 7, Tigers 4

Detroit — Jason Kipnis hit two of Cleveland’s four triples and the Indians continued their season-long dominance of Detroit t.

The Indians are now 7-0 against the Tigers this season. Detroit had won 16 of 20 at home and was coming off a four-game sweep of the Seattle Mariners.

Danny Salazar (9-3) struggled with his command, walking five in 5 innings, but held the Tigers to three runs on four hits.

Brewers 5, Nationals 3

Milwaukee — Kirk Nieuwenhuis and Keon Broxton each hit home runs off Max Scherzer and Milwaukee beat Washington to extend the Nationals’ losing streak to a season-worst six games.

Scherzer (8-5) allowed five runs on five hits over six innings. He walked three and struck out 10, throwing 117 pitches.

Jeremy Jeffress hit the first batter in the ninth and then allowed Daniel Murphy’s hit with two outs, putting runners at the corners. Wilson Ramos struck out swinging, giving Jeffress his 20th save in 21 chances.

Mets 8, Braves 6

Atlanta — James Loney hit a three-run homer, Travis d’Arnaud drove in three runs and New York survived Atlanta’s six-run fifth inning.

The Mets led 8-0 after Loney’s three-run homer in the fifth. Steven Matz almost blew the lead as he allowed six runs on eight hits in the bottom of the inning.

Brandon Snyder hit a pinch-hit, three-run homer and Adonis Garcia had a two-run double in Atlanta’s big inning.

Padres 13, Reds 4

Cincinnati — Wil Myers drove in five runs and Melvin Upton Jr. had a pair of two-run homers as San Diego scored in each of the first eight innings.

The National League’s top-scoring team in June kept at it, hitting four homers. San Diego is averaging 5.86 runs in the month.

Cubs 5, Marlins 4

Miami— Rookie Willson Contreras homered and drove in three runs to help the Cubs break their longest losing streak of the season at four games.

Contreras hit a two-run homer in the Cubs’ four-run first inning. His RBI single in the seventh put the team with the best record in the majors ahead to stay.

He’s batting .412 with eight RBIs after seven games in the big leagues.

Pirates 8, Dodgers 6

Pittsburgh— Matt Joyce homered and doubled among his three hits as Pittsburgh beat Los Angeles, ending the Dodgers’ six-game winning streak and giving Pirates manager Clint Hurdle his 1,000th career victory.

Joyce drove in two runs while filling in for right fielder Gregory Polanco, who sat out with lower leg discomfort.

Dodgers rookie shortstop Corey Seager had four hits to extend his hitting streak to eight games.

Neftali Feliz (2-0), the fourth of six Pirates pitchers, retired all five batters he faced and Mark Melancon pitched a scoreless ninth for his 21st save in 22 opportunities.