James Paxton pitched one-hit ball for seven shutout innings, striking out 12 and winning his seventh straight start as the Yankees bounced back in a big way by routing the Texas Rangers, 10-1, on Tuesday night.

Gary Sánchez hit two home runs, Edwin Encarnación added a two-run drive in his return from the injured list and Didi Gregorius and Brett Gardner also connected. The five homers came a day after Mike Minor and the Texas bullpen ended New York’s streak of 220 games without being shut out.

The Yankees became the fifth team in major league history to hit at least 260 homers in a season and are six behind the franchise record they set last season. The Yankees also set a major league record by surpassing 3 million fans for the 21st straight season.

Paxton (12-6) pitched quickly and began with four and two-thirds hitless innings. The left-hander gave up his only hit when Isiah Kiner-Falefa had a clean single to right field.