BALTIMORE — Matt Wieters hit a go-ahead, two-run homer off Jason Grilli in the eighth inning to lead the Baltimore Orioles to a 5-3 victory over the Toronto Blue Jays on Tuesday night.

The Orioles pulled within three games of the first-place Blue Jays, who had a four-game winning streak snapped. After losing the opener 5-1, the Orioles will look to gain more ground in the series finale Wednesday.

Michael Saunders drilled a two-run shot off Orioles starter Ubaldo Jimenez that tied the game 3-3 in the seventh.

In the eighth, Jonathan Schoop walked and Wieters homered off Grilli (4-2), his 12th of the season.

Brad Brach (8-2) picked up the win with 1 1/3 scoreless innings. Zach Britton got his league-leading 39th save.

INDIANS 5, TWINS 4: Francisco Lindor drove in the go-ahead run in the fifth inning and Cleveland survived another poor start by Josh Tomlin, extending the visiting Twins’ losing streak to 12 games.

Lindor’s double off Alex Wimmers (0-1) snapped a 4-4 tie.

RANGERS 8, MARINERS 7: Rougned Odor hit a game-ending two-run homer and the AL-best Rangers won at Arlington, Texas.

Odor’s 25th homer was a drive to the hill in center field on a 2-2 pitch from Mariners closer Edwin Diaz (0-3), who had converted his first 11 save chances of the season.

TIGERS 8, WHITE SOX 4: Ian Kinsler homered and drove in four runs as Detroit rallied to win at home.

Kinsler came into the game in a 4-for-47 skid, but he hit a two-run homer in the fifth and added a two-run single in the sixth.

JaCoby Jones had two hits and two RBI for the Tigers in his major league debut.

ASTROS 3, ATHLETICS 1: Collin McHugh threw six scoreless innings, Colby Rasmus and Evan Gattis homered, and Houston won at home.

NATIONAL LEAGUE

CUBS 3, PIRATES 0: Kyle Hendricks threw seven dominant innings to lower the majors’ best ERA to 2.09 and Anthony Rizzo homered to lead host Chicago past Pittsburgh for the Cubs’ 21st victory in August.

Hendricks (13-7) allowed three hits and has given up three or fewer runs in 18 straight starts. He didn’t allow a hit until Gregory Polanco’s bloop to left-center in the fifth.

NATIONALS 3, PHILLIES 2: Max Scherzer didn’t allow a hit until the sixth inning and was dominant through eight as Washington continued its mastery of Philadelphia with a road win.

Scherzer (15-7) allowed three hits and struck out 11 while walking one. He was perfect through the first four innings, striking out five consecutive batters – all swinging – between the second and third innings.

CARDINALS 2, BREWERS 1: Zach Duke stranded the bases loaded with a strikeout in the 10th after Randal Grichuk hit an RBI single in the top half of the inning, lifting St. Louis to a win at Milwaukee.

Seung Hwan Oh (4-2) pitched out of a jam in the ninth to get the win. Duke got his first save with the Cardinals by striking out pinch-hitter Manny Pina after Matt Bowman walked three batters.

METS 7, MARLINS 4: Curtis Granderson came off the bench and homered twice, Jose Reyes had four hits and the surging Mets won in New York.

Asdrubal Cabrera hit a two-run homer in his return to the lineup after missing one start because of a sore left knee.

BRAVES 7, PADRES 3: Julio Teheran won for the first time in 10 starts, rookie Dansby Swanson drove in three runs and Atlanta beat visiting San Diego.

Teheran began the night with the lowest run support in the majors.