Pinch-hitter J.C. Escarra came through with a sacrifice fly in the 10th inning and the host New York Yankees, held hitless into the seventh, rallied past the San Diego Padres 4-3 on Wednesday night.

Cody Bellinger homered with one out in the seventh for New York’s first hit off Padres starter Dylan Cease, who exited moments later with a cramp in his right forearm.

Max Fried tossed seven splendid innings in a pitchers’ duel with Cease before San Diego scored twice against the Yankees’ bullpen to build a 3-1 lead in the eighth.

Pinch-hitter Trent Grisham tied it in the bottom half with a two-run homer after Oswaldo Cabrera drew a leadoff walk from Jason Adam. It was Grisham’s 10th home run.

Cardinals 5, Pirates 0: Sonny Gray pitched seven innings of two-hit ball and host St. Louis beat slumping Pittsburgh for its fifth straight victory and a three-game sweep.

Gray (4-1) struck out eight and walked one in his first win since April 14. Masyn Winn hit two RBI doubles for the Cardinals.

The Pirates (12-26), shut out for the eighth time, have lost seven in a row.

Mariners 6, Athletics 5: Leody Taveras hit a game-tying two-out single in the eighth inning of his debut with visiting Seattle before scoring the go-ahead run on Dylan Moore’s base hit and the Mariners rallied from a five-run deficit to beat the Athletics and win their ninth straight series.

Giants 3, Cubs 1: Robbie Ray pitched six sparkling innings, Wilmer Flores had three hits and visiting San Francisco beat Chicago.

Ray (5-0) allowed one run and three hits in his second straight win.

Astros 9, Brewers 1: Framber Valdez (2-4) pitched seven strong innings and Jeremy Peña homered and drove in four runs as visiting Houston defeated Milwaukee.

The Astros earned just their second victory in seven games to snap the Brewers’ three-game winning streak.

Guardians 8, Nationals 6: Carlos Santana kick-started an eight-run sixth inning with a bases-clearing double and visiting Cleveland beat Washington.

The Guardians sent 13 men to the plate in the sixth against Michael Soroka (0-2) and relievers Jorge Lopez and Andrew Chafin.

Mets 7, Diamondbacks 1: Juan Soto homered in consecutive at-bats, Kodai Senga overcame early control problems to pitch six scoreless innings and visiting New York beat Arizona.

Senga (4-2) allowed two hits, struck out four and walked five — all in the first three innings — to lower his ERA to 1.16.

Red Sox 6, Rangers 4: Alex Bregman hit a tiebreaking two-run single and had a solo homer, Wilyer Abreu added two solo shots and host Boston beat Texas to snap a three-game losing streak.

Bregman and Abreu each drove in three runs for the Red Sox.

Adolis García and Josh Jung each hit a solo homer for Texas, which has dropped eight of 11.

Reds 4, Braves 3: TJ Friedl hit two home runs and visiting Cincinnati beat Atlanta to snap a four-game losing streak despite losing right-hander Hunter Greene to a right groin injury after only three innings.

Greene struck out six batters and allowed two hits in three scoreless innings.

Phillies 7, Rays 0: Cristopher Sánchez allowed one hit over six innings and Trea Turner, Bryson Stott and Bryce Harper each drove in two runs as visiting Philadelphia beat Tampa Bay.

Sánchez (4-1) allowed a single by Junior Caminero in the first and walked Danny Jansen but didn’t allow a player past first base the rest of the night, finishing with five strikeouts.

Twins 5, Orioles 2: Byron Buxton homered for a third straight game and Harrison Bader had a pinch-hit homer to lift host Minnesota to a win over Baltimore for its fourth consecutive victory.

Royals 2, White Sox 1: Bobby Witt Jr. hit a two-run homer to give Michael Wacha all the support he needed as host Kansas City defeated Chicago. It was the third straight quality start for Wacha (2-4), who allowed three hits in seven innings with five strikeouts.