Adrian Beltre had three RBIs while Josh Hamilton doubled twice and scored three times for the Rangers, who avoided a four-game sweep in a matchup of AL division leaders.
Texas had lost eight straight at Yankee Stadium overall. The Rangers had done little in this series, too, totalling four runs before Thursday.
Ichiro Suzuki got three hits for the Yankees, who had won seven of eight.
The Yankees rallied for a 5-4 lead before the Rangers came back with three runs in the seventh.
David Murphy hit a tying RBI double off Boone Logan (4-1) and, after an intentional walk that loaded the bases, Gentry lined a tiebreaking single up the middle off Joba Chamberlain.
Reliever Tanner Scheppers (1-0) won his first big league decision.
WHITE SOX 7, BLUE JAYS 2
TORONTO (AP) — Alex Rios hit a three-run homer against his former team, and Francisco Liriano earned his first victory as the Chicago White Sox topped Toronto.
Tyler Flowers, Dayan Viciedo, Alexei Ramirez and Dewayne Wise all hit solo home runs as the White Sox matched a season high by going deep five times. Chicago has hit 28 home runs in 13 games, and the power surge helped the White Sox win their first series in Toronto since 2006.
Viciedo and Flowers hit consecutive long balls in the fifth inning, the eighth time this season the White Sox have gone back-to-back.
Liriano (4-10) allowed two runs and three hits in 6 1-3 innings to win for the first time since July 6 at Texas, while pitching for Minnesota. The left-hander, who walked one and struck out six, was traded to Chicago on July 28.
Aaron Laffey (3-4) allowed three runs and three hits in six innings to lose for the third time in four starts.
RED SOX 6, ORIOLES 3
BALTIMORE (AP) — Clay Buchholz shook off a rocky start to earn his 11th win, Dustin Pedroia singled in the tiebreaking run in the sixth inning, and Boston beat Baltimore to avoid a three-game sweep.
Adrian Gonzalez had two RBIs, and Cody Ross chipped in with three hits to help Boston to its third win in nine games. Serving as designated hitter for the first time this season, Jacoby Ellsbury went 0 for 4 to end his 38-game hitting streak against Baltimore.
After giving up three runs and six hits over the first two innings, Buchholz (11-3) kept the Orioles at bay, and the Red Sox rebounded from a 3-1 deficit. He allowed three runs, eight hits and three walks in eight innings and struck out seven.
Alfredo Aceves worked a perfect ninth for his 24th save.
Mark Reynolds homered and Adam Jones had two RBIs for the Orioles, 8-4 against Boston this season. Reynolds has four homers in six games after going 20 without one.
The Red Sox took a 6-3 lead with a three-run sixth against Luis Ayala (4-4).
ATHLETICS 3, ROYALS 0
KANSAS CITY, Mo. (AP) — Coco Crisp and Yoenis Cespedes homered, and Dan Straily earned his first major league victory in Oakland's win over Kansas City.
Crisp, who played for the Royals in 2009, was 2 for 27 this season against Kansas City before the home run. His drive hit high off a green wall beyond the fence and caromed back onto the field. It was first ruled a double, but after A's manager Bob Melvin disputed the call, umpires viewed replays and changed it to a home run.
Straily (1-0) held the Royals to three singles over 6 1-3 innings in his third major league start. Straily, who walked two and struck out two, pitched out of a bases loaded jam in the second inning.
Luke Hochevar (7-11) gave up three runs and four hits in seven-plus innings. Hochevar is 0-8 with a 6.52 ERA in nine career starts against Oakland.
Grant Balfour worked a perfect ninth to earn his ninth save in 11 opportunities.
RAYS 7, ANGELS 0
ANAHEIM, Calif. (AP) — David Price pitched three-hit ball over seven innings for his AL-leading 16th victory, and Tampa Bay got home runs from Evan Longoria, B.J. Upton and Ben Zobrist in a win over the Los Angeles Angels.
Burke Badenhop and Wade Davis each worked one inning in the Rays' third straight shutout against the Angels. Los Angeles has gone 32 consecutive innings without scoring against a staff that leads the AL in ERA, opponents' batting average and strikeouts.
Price (16-4) struck out eight, walked two and lowered his ERA to 2.39, third in the AL. The left-hander allowed only two runners to third base. Price is 7-0 with a 2.21 ERA over his last nine road starts, and 8-0 with a 1.72 ERA in his last 11 starts overall.
Dan Haren (8-10) threw 61 pitches in 3 1-3 innings and gave up five runs and seven hits, including Zobrist's 13th homer and Upton's 14th. He has allowed at least one home run in a career-worst 10 consecutive starts, and 15 during the streak.
The Rays, who lost 1-0 at Seattle on Wednesday in Felix Hernandez's perfect game, had a streak of 34 consecutive batters retired before Zobrist homered in the second.