TORONTO — Mark Teixeira hit a two-run homer and Hiroki Kuroda was effective over 6 1/3 innings as the New York Yankees defeated the Toronto Blue Jays 5-3 on Wednesday to salvage the finale of a three-game series at Rogers Centre.

David Robertson got the last five outs for his 18th save as New York (40-37) ended a four-game losing skid and moved 2 1/2 games behind first-place Toronto (44-36) in the American League East.

Jacoby Ellsbury had three of New York’s nine hits. Jose Reyes had three hits for the Blue Jays and Melky Cabrera drove in a pair of runs.

Toronto entered play 2 1/2 games ahead of Baltimore in the division standings. The Orioles played the Chicago White Sox on Wednesday night.

Reyes took the first pitch from Kuroda (5-5) over the wall for his sixth homer of the season. It was his third leadoff home run of the year and 21st of his career.

In the second inning, Juan Francisco took advantage of the defensive shift and sliced a single to the open left side. He moved to second base when Munenori Kawasaki reached on an infield single with one out.

Anthony Gose lined out to second baseman Brian Roberts, who doubled off Francisco with a quick throw to Derek Jeter.

The Yankees used a hit-and-run play to get on the board in the third inning against Toronto starter Drew Hutchison (5-6).

Former Blue Jay Kelly Johnson reached on a walk and took off for second as Francisco Cervelli drove a ball into the right-centre field gap. Johnson scored easily on the Cervelli double.

Hutchison got the next two outs before giving up a single to Ellsbury that brought Cervelli across with the go-ahead run. Teixeira padded the lead by turning on an 0-1 pitch for his 14th homer of the year.

The Yankees loaded the bases with two outs in the fifth but a nice defensive play by first baseman Adam Lind prevented further damage. He ran to his right to grab Ichiro Suzuki’s slow chopper and quickly tossed the ball to the covering Hutchison, who beat the runner to the bag by half a step.

Toronto cut into the lead with a pair of runs in the fifth.

Kawasaki drew a walk and moved to third when Reyes hit a ground-rule double. Cabrera brought them both home with a sharp single to left field.

Hutchison struck out the side in the sixth inning and was replaced in the seventh by left-hander Rob Rasmussen. Hutchison allowed seven hits, four earned runs and two walks while striking out six.

Rasmussen faced three batters and did not record an out. He walked Brett Gardner, hit Jeter with a pitch, threw a wild pitch to the backstop and walked Ellsbury to load the bases.

Sergio Santos came on in relief and gave up a sacrifice fly to Teixeira that brought Gardner home with an insurance run. Santos struck out Carlos Beltran and walked Suzuki to load the bases before getting Roberts to fly out.

GIANTS 4, PADRES 0

Tim Lincecum pitched his second no-hitter against the San Diego Padres in less than a year, allowing only one runner Wednesday and leading the San Francisco Giants to a 4-0 win.

Lincecum totally shut down the weakest-hitting team in the majors, striking out six and walking one. He retired the final 23 batters after walking Chase Headley in the second inning.

The 30-year-old Lincecum (6-5) threw 113 pitches for this win. Last July 13 at San Diego, he threw 148 pitches while holding the Padres hitless.

The right-hander became the second pitcher in major league history to twice no-hit the same team. This was the third no-hitter in the majors this year.

Lincecum went 2 for 3 with a walk and scored twice. Buster Posey got four hits, including a double, and drove in two runs.

Ian Kennedy (5-9) allowed four runs on nine hits over 6 1/3 innings. He walked one and struck out eight.

RAYS 5, PIRATES 1

ST. PETERSBURG, Fla. (AP) — David Price struck out 11, becoming the first pitcher in 10 years to fan at least 10 in five straight starts, and Tampa Bay beat Pittsburgh.

Price (6-7) gave up five hits and one walk in 8 1-3 innings, leaving the game after Andrew McCutchen’s home run in the ninth. The last pitcher with five straight starts of 10 strikeouts was Minnesota’s Johan Santana in 2004.

Price also set a franchise record for strikeouts in a month with 54. He went 2-3 in five June starts.

Erick Aybar got two hits and stole two bases as Los Angeles won for the 14th time in 16 games at Angel Stadium, moving to a season-high 10 games over .500 at 43-33. The Angels are unbeaten on their homestand, matching their longest winning streak of the year.

Oswaldo Arcia homered for the Twins, who have lost seven straight road games for the first time since September 2011. Yohan Pino (0-1) got through just three innings in his second major league appearance.

Richards (8-2) surrendered the third homer of his breakout season, but recovered for his fourth victory in June.

BREWERS 9, NATIONALS 2

MILWAUKEE (AP) — Scooter Gennett had a grand slam and five RBIs, Khris Davis added a solo shot, and Milwaukee roughed up ace Stephen Strasburg in a rout of Washington.

Homer-prone starter Marco Estrada (7-4) allowed just two hits — and no homers — and pitched effectively into the seventh for the Brewers, who bounced back a day after falling 4-2 in 16 innings to Washington.

Davis finished with three RBIs.

Strasburg (6-6) was tagged for eight hits and seven runs in 4 2/3 innings. It matched a career-worst outing for Strasburg, who also allowed seven earned runs in a two-inning start against Miami on July 12, 2013.

The Brewers’ bats broke out after scoring just two runs in 25 innings in the first two games of a series between NL division leaders. Milwaukee had 13 hits, even with Ryan Braun, Aramis Ramirez and Jonathan Lucroy all getting a day off.

CARDINALS 9, ROCKIES 6

DENVER (AP) — Matt Adams homered and drove in two runs, Matt Holliday had three hits, and St. Louis rallied to beat Colorado.

Drew Stubbs homered, and Justin Morneau had two hits for the Rockies, who finished their homestand 1-5.

The game featured the major league debuts of both starting pitchers. St. Louis’ Marco Gonzales was sharp early before faltering. Colorado’s Yohan Flande also started well before getting hit hard in his last inning.

Pat Neshek (2-0) pitched an inning in relief to earn the win. Trevor Rosenthal got four outs for his 23rd save in 26 chances.

The Cardinals scored twice in the eighth off Adam Ottavino (0-2) on RBI doubles by Daniel Descalso and Matt Carpenter to take a win away from Flande.

St. Louis added two more runs in the ninth on two of the club’s four sacrifice flies.

RED SOX 5, MARINERS 4

SEATTLE (AP) — David Ortiz hit the 449th home run of his career in the first inning, added a line drive RBI single off the wall in the third, and the Boston Red Sox avoided a sweep in Seattle.

Ortiz connected for a two-run shot off the windows of the cafe in right field at Safeco Field against Hisashi Iwakuma (5-4).

BALTIMORE (AP) — Nelson Cruz hit a tying grand slam in the eighth inning and David Lough scored the winning run on a wild pitch in the 12th, sending the Baltimore Orioles over the Chicago White Sox.

There was a rain delay of more than an hour after the ninth inning ended.

Nick Hundley opened the bottom of the 12th with a walk off Daniel Webb (4-2) and Lough entered as a pinch-runner. Lough took third on a single by Nick Markakis and scored easily when Webb uncorked a pitch that got past catcher Tyler Flowers.

The Indians ran through their bullpen in a 14-inning game the night before Kluber (7-5) gave them a lift.

Michael Brantley homered and had two RBIs against Chase Anderson (5-3).

ATHLETICS 8, METS 5

NEW YORK (AP) — Yoenis Cespedes hit a three-run double, slumping Brandon Moss had a two-run homer and the Oakland Athletics jumped all over an ineffective Zack Wheeler and the New York Mets.

Coco Crisp homered and had three hits as the AL West leaders built an eight-run cushion for Brad Mills (1-0), who took a shutout into the seventh inning for his first major league victory in almost two years.

Oakland rebounded from its most lopsided loss of the season to split the two-game interleague series, boosting the best record in baseball to 48-30. The Mets had won three straight.

Sean Doolittle struck out all three hitters in the ninth for his 11th save, extending his scoreless streak to 25 1-3 innings. He has retired 37 of his last 38 batters.

Wheeler (3-8) followed up the best start of his brief career with his worst.

Alvarez (5-3) allowed two runs — one earned — and seven hits. He is 3-0 with an 0.78 ERA in his last seven starts.

Steve Cishek struck out the side in the ninth for his 18th save in 19 tries.

A.J. Burnett (5-7) gave up three runs and five hits, striking out eight in seven innings.

The Marlins have won two of the first three in the four-game set. They had lost eight of their previous nine games in Philadelphia.

REDS 4, CUBS 1

CHICAGO (AP) — Mat Latos pitched seven impressive innings for his first win of the season and Jay Bruce had two run-scoring doubles that led Cincinnati.

With the wind blowing in on a cold summer night, Devin Mesoraco’s five-game homer streak came to an end. The Reds catcher was tied with Adam Dunn, Ken Griffey Jr., Johnny Bench, George Crowe and Ted Kluszewski for the franchise record.

Latos (1-0) allowed one run and five hits in his third start after beginning the season on the disabled list. Aroldis Chapman pitched the ninth for his 14th save in 15 chances.

Edwin Jackson (5-8) allowed four runs and six hits in 5 1-3 innings for Chicago, which has dropped four of five.

BRAVES 4, ASTROS 0

HOUSTON (AP) — Justin Upton homered for the second straight game and had three RBIs and Alex Wood pitched seven scoreless innings to help the Atlanta Braves beat Houston Astros.

Shae Simmons and Juan Jaime finished the three-hitter as the Astros were shut out for the 10th time this season.

The Braves had just two hits when Upton launched his 16th homer, a two-run shot in the seventh off Collin McHugh (4-6).

Braves first baseman Freddie Freeman left in the eighth after being hit by a pitch on what appeared to be his right elbow. There was no immediate update on his injury.

Wood (6-6) was recalled from Triple-A Gwinnett to make his first start since May 4 after 11 relief appearances in his last stint with the Braves. He allowed three hits.