BOSTON (AP) J.J. Hardy, Nolan Reimold and Jonathan Schop homered and the Baltimore Orioles beat Boston 6-3 Tuesday night to pull within two games of the AL East-leading Red Sox.

The Orioles also tied Toronto for the wild-card lead.

Dylan Bundy (9-5) gave up three runs over 5 1/3 innings. Zach Britton pitched a scoreless ninth for his 42nd save.

More from FoxSports

Xander Bogaerts homered for Boston, which had won five of six.

Drew Pomeranz (10-12) gave up five runs and four hits in two-plus innings.

CARDINALS 4, CUBS 2

ST. LOUIS (AP) - Brandon Moss broke out of a lengthy slump with a tiebreaking home run and Aledmys Diaz connected in his return to the starting lineup, leading St. Louis over Chicago.

The Cardinals ensured that the runaway Cubs won't clinch the NL Central at Busch Stadium. Chicago's magic number is three, and the series in St. Louis wraps up Thursday.

St. Louis remained a half-game behind the New York Mets for the second wild-card spot.

Moss began the day mired in a 1-for-41 skid. He hit a two-run homer in the sixth off Jason Hammel (14-9).

Alex Reyes (2-1) pitched 4 1-3 innings of scoreless relief. Kevin Siegrist got his second save.

YANKEES 3, DODGERS 0

NEW YORK (AP) - Jacoby Ellsbury and Didi Gregorius came off the bench and hit back-to-back homers in the seventh inning, sending the Yankees over the NL West leaders.

Gary Sanchez added a leadoff home run in the eighth as New York stayed two games behind in the AL wild-card race.

Adam Warren (3-1) retired both batters he faced, and Dellin Betances got four outs for his 11th save.

Ross Stripling (4-7) gave up homers on consecutive pitches.

RANGERS 3, ASTROS 2

HOUSTON (AP) - Jurickson Profar hit a tiebreaking single and AL West-leading Texas rallied for two runs in the ninth inning.

The Rangers improved to 15-3 against Houston this year. The Astros are 4 1/2 games back in the wild-card chase.

Rougned Odor fanned with one out in the ninth but reached on a wild pitch. He later scored on Elvis Andrus' two-out triple against Ken Giles (2-4), and Profar singled.

Alex Claudio (4-1) pitched the eighth and Tanner Scheppers worked a perfect ninth for his first save.

RAYS 6, BLUE JAYS 2

TORONTO (AP) - Drew Smyly pitched 5 2/3 innings to remain unbeaten at Rogers Centre, Alexei Ramirez and Steven Souza Jr. hit home runs and Tampa Bay stopped Toronto.

The Blue Jays are tied with Baltimore for the AL wild-card spots. Toronto is 3-8 in September.

Ramirez hit a three-run homer off Marcus Stroman (9-8) in the fifth.

Smyly (7-11) is 4-0 at Toronto.

METS 4, NATIONALS 3, 10 INNINGS

WASHINGTON (AP) - T.J. Rivera hit his first major league home run, connecting for the Mets in the 10th off Washington closer Mark Melancon.

New York has won eight of 10 and is a half-game ahead of St. Louis for the second NL wild card.

Rivera drove in three runs. His shot off Melancon (2-2) helped snap the Nationals' four-game winning streak.

Jeurys Familia (3-3) got the win despite allowing two runs in the ninth for his fourth blown save. Jerry Blevins struck out Daniel Murphy for the final out to earn his first save.

TWINS 8, TIGERS 1

DETROIT (AP) - Jorge Polanco homered and drove in four runs and Brian Dozier added three more hits to his torrid second half for Minnesota.

The Tigers lost for the third time in 14 games against Minnesota, costing them precious ground in a crowded race for the second AL wild card.

Kyle Gibson (6-9) dominated, allowing one run and five hits in eight innings.

Matt Boyd (5-4) took the loss in his worst outing since June. He gave up seven runs, eight hits and a walk in 3 2/3 innings.

ATHLETICS 5, ROYALS 4

KANSAS CITY, Mo. (AP) - Pinch hitter Yonder Alonso delivered a two-run double in the eighth inning to rally Oakland.

Defending World Series champion Kansas City dropped five games out of the wild-card race with only 18 games left.

Rookie Matthew Strahm (2-1) took the loss.

John Axford (6-4) pitched one inning. Ryan Madson closed for his 30th save in 36 tries.

WHITE SOX 8, INDIANS 1

CHICAGO (AP) - Todd Frazier and Carlos Sanchez each drove in two runs in a seven-run sixth inning and Chicago handed AL Central-leading Cleveland its second straight lopsided loss.

The Indians, who have allowed 19 runs in two games, maintained a six-game lead over Detroit.

Jose Quintana (12-10) held Cleveland to five hits over eight innings.

Trevor Bauer (11-7) took the loss.

MARLINS 7, BRAVES 5

ATLANTA (AP) - Ichiro Suzuki scored two runs and drove in another in the 900th multihit game of his career and Miami boosted its fading wild-card hopes.

Miami is five games out of a playoff spot.

Justin Nicolino (3-6) earned the win with two hitless innings. A.J. Ramos worked a perfect ninth for his 35th save.

Matt Wisler (6-12) got the loss.

Freddie Freeman hit his career-high 30th homer for Atlanta. Matt Kemp also homered.

PIRATES 5, PHILLIES 3

PHILADELPHIA (AP) - Sean Rodriguez had a pinch-hit three-run homer in the ninth inning to lift Pittsburgh.

The Pirates remained six games behind the Mets for the second NL wild card.

Rodriguez hit for pitcher Felipe Rivero (1-5) with two on and one out and connected off Jeanmar Gomez (3-4).

Tony Watson struck out two in the ninth for his 12th save.