Jim Cowsert-USA TODAY Sports

Gerrit Cole pitched 6 2/3 innings to become one of three five-game winner in the majors and the visiting New York Yankees took an early lead to beat the Texas Rangers 4-2 Thursday night in Arlington, Texas.

DJ LeMahieu and Gleyber Torres hit back-to-back homers in a three-run second off Texas starter Andrew Heaney. Rookie Anthony Volpe hit a bases-loaded RBI single before Heaney retired the next 13 hitters.

New York scored its final run when Jose Trevino smacked a solo homer in the ninth.

The Yankees won their second straight in a game that Aaron Judge exited in the fourth inning due to right hip discomfort.

Judge appeared to grimace with some discomfort after striking out in his second at-bat after Volpe's single in the second inning and was replaced two innings later by Oswaldo Cabrera in right field. On Wednesday, Judge stayed in the game after appearing to land awkwardly on his right hand trying to steal third during the second inning.

Cole (5-0) allowed two runs and six hits to join Minnesota's Joe Ryan and Tampa Bay's Shane McClanahan -- who also earned a win Thursday night -- as the AL's only five-game winners. Ryan has two of his wins against the Yankees, whom he beat Tuesday and April 13 in New York.

Cole struck out eight and walked one in a 92-pitch outing and cruised into the sixth before allowing both runs.

Cole loaded the bases on two singles and a walk. He gave up both runs on balls that did not leave the infield.

After striking out Adolis Garcia for the first out, Jonah Heim appeared to hit a double-play ball. LeMahieu got the force at second but Cole dropped the return throw from Volpe at shortstop as Marcus Semien scored.

Ezequiel Duran then hit a slow grounder and reached on an infield single to make it 3-2 when third baseman Oswald Peraza tried to make a backhanded play.

Heaney (2-2) allowed three runs and four hits in six innings. He struck out six and walked one while throwing 97 pitches.

Cole exited after retiring the first two outs of the seventh and Michael King got the final seven outs. He ended the eighth by retiring Heim after walking Garcia and pitched a 1-2-3 ninth for his second career save.

More must-reads:

TODAY'S BEST
Cubs designate lefty reliever for assignment
Two-time Super Bowl champ signs with AFC contender
Stars center matches Gretzky feat as Dallas pushes Avalanche to brink
Gritty young Thunder take down veteran Mavericks in Game 4
Cubs acquiring veteran reliever from Mariners
Top-five NBA Draft prospect suffers scary non-contact injury
Hurricanes stay alive with third-period outburst vs. Rangers
Jaylen Brown's big three-pointer gives Celtics 3-1 lead over Cavs
Avalanche star placed in player assistance program
Mercury announce devastating injury on eve of WNBA season
Randy Moss' son makes major football announcement
Reds place key outfielder on injured list with broken thumb
Tom Brady's broadcasting debut set for Week 1 of NFL season
Struggling Cubs reliever placed on injured list 
Report: Justin Fields had ‘toxic' relationship with ex-Bears QB
Extension makes Lions QB Jared Goff one of NFL's highest-paid players
Kentucky's Reed Sheppard displays excellent skills at NBA Draft Combine
Knicks big man undergoes another ankle surgery
Flames CEO stepping down, transitioning to advisory role
Oilers star seemingly dismisses Arturs Silovs' performance in Game 3

Want more Yankees news?

Join the hundreds of thousands of fans who start their day with Yardbarker's Morning Bark, the best newsletter in sports.