NEW YORK (AP) — Brandon McCarthy held down the Yankees, and then the Texas Rangers’ hitters broke out to stop their slide against New York.

McCarthy limited New York to one run in 5 1-3 innings and Mark Teixeira had four hits, including three doubles, leading the Rangers to a 14-2 rout Thursday.

Pinch-hitter Victor Diaz hit his first career grand slam, Teixeira had three RBIs and Gerald Laird out-raced Alex Rodriguez in a rundown to score the go-ahead run in a three-run fifth.

Texas turned the game into a blowout with three runs in the seventh and seven more in the eighth. Rangers closer Eric Gagne pitched a perfect ninth, his first action since straining a hip on April 22.

New York had won its first five games this year against last-place Texas and 18 of 20 since July 2005. The Yankees (16-17) fell short in their attempts to sweep the season series and to move over .500 for the first time since before play on April 21.

Texas set season highs for runs and hits (16).

McCarthy (3-4), who gave up five or more runs in each of his previous three starts, allowed five hits and threw a season-high 104 pitches.

The only run off him was Melky Cabrera’s tying homer in the third.