Washington Nationals' Trea Turner (7) runs to first base after Arizona Diamondbacks' Tuffy Gosewisch, left, dropped the third strike during the sixth inning of a baseball game Wednesday, Aug. 3, 2016, in Phoenix. The Diamondbacks' Gosewisch was able to throw to first base for the out on the play. (AP Photo/Ross D. Franklin)
Washington Nationals' Trea Turner (7) runs to first base after Arizona Diamondbacks' Tuffy Gosewisch, left, dropped the third strike during the sixth inning of a baseball game Wednesday, Aug. 3, 2016, in Phoenix. The Diamondbacks' Gosewisch was able to throw to first base for the out on the play. (AP Photo/Ross D. Franklin)

Chicago — Matt Szczur scored on A.J. Ramos’ wild pitch with two outs in the ninth inning to give the Chicago Cubs a 5-4 comeback victory over the Miami Marlins on Wednesday.

The Cubs scored three runs in the inning to sweep the three-game series.

Miguel Montero led off with a double to right and went to third on Javier Baez’s single. Ramos (1-1) then walked pinch-hitter Szczur to load the bases. Dexter Fowler made it 3-2 with a sacrifice fly to right, and all the runners advanced.

Kris Bryant struck out looking on a 3-2 pitch for the second out. Anthony Rizzo was intentionally walked to load the bases again, and Ramos walked Zobrist and then unloaded a wild pitch with Willson Contreras at the plate.

Yankees 9, Mets 5

New York — Mark Teixeira hit a tiebreaking, three-run drive off Steven Matz in the second inning for his first home run against a left-hander in more than a year, then got hit by a pitch that sparked a bench-clearing dustup in the Yankees’ Subway Series victory.

Chad Green and Matz (8-8) both struggled at the start, and Luis Severino (1-6) came out of the bullpen with 4 innings of one-hit relief. Another of the Yankees’ Kiddie Korps, 23-year-old catcher Gary Sanchez, was called up before the game and got his first big league hit.

In a season-long slump, Teixeira came to the plate in the second with the score 3-all. Following two-out singles by Jacoby Ellsbury and Rob Refsnyder, the switch-hitter hit his 10th home run this season.

Nationals 8, Diamondbacks 3

Phoenix — Max Scherzer struck out 11 in eight innings and had a two-run single in Washington’s victory over Arizona.

Scherzer (12-6) allowed three runs on four hits, giving up two homers, and walked one.

Cardinals 5, Reds 4

Cincinnati — Brandon Moss singled home two runs in St. Louis’ four-run first inning, extending his season-long streak against Cincinnati. St. Louis sent nine batters to the plate against Cody Reed (0-6) in the first inning, with Moss and Greg Garcia each driving in a pair of runs with singles.

Orioles 3, Rangers 2

Baltimore — Kevin Gausman outpitched Cole Hamels, and Baltimore rode a three-run first inning to a victory over Texas.

Matt Wieters had two RBIs for the AL East-leading Orioles, a major league-best 39-16 at home.

Tigers 2, White Sox 1

Detroit — J.D. Martinez broke an eighth-inning tie with a pinch homer on the first pitch he faced since June and Detroit beat Chicago for its eighth straight victory.

Playing for the first time since fracturing his elbow June 16, Martinez hit for James McCann leading off the inning and launched Chris Sale’s first pitch into the shrubs above the centerfield fence.

Rays 12, Royals 0

St. Petersburg, Fla. — Jake Odorizzi had his third consecutive scoreless start, Steven Souza Jr. homered for the first time in two months and Tampa Bay routed Kansas City.

Brad Miller and Kevin Kiermaier also homered for the Rays.

Twins 13, Indians 5

Cleveland — Joe Mauer had four hits and four RBIs, Brian Dozier hit a three-run homer and Minnesota continued its mastery over Cleveland. AL Central-leading Cleveland fell to 4-8 against last-place Minnesota.

Braves 8, Pirates 4

Atlanta — Ender Inciarte broke a tie with an RBI single in the fifth inning and offensively challenged Atlanta had 15 hits in its victory over Pittsburgh.

Blue Jays 3, Astros 1

Houston — Josh Donaldson hit two home runs, and Marco Estrada threw seven solid innings in Toronto’s victory over Houston.

Jose Bautista hit his second home run in two nights in the sixth as he and Donaldson went back-to-back. Donaldson led off the fourth with a home run to right field before hitting his 27th home run of the season in the sixth.

Padres 12, Brewers 3

San Diego — Edwin Jackson pitched seven scoreless innings and had an RBI double, and Jabari Blash hit his first major league home run to help San Diego rout Milwaukee.

Jackson (2-2) retired the first 11 batters he faced, and the Brewers didn’t put a runner in scoring position until Kirk Nieuwenhuis doubled in the fifth. Jackson signed a minor-league contract with the Padres in June after starting the season in Miami’s bullpen.