NEW YORK – Evan Longoria homered twice and drove in three runs, Matt Moore ended a personal three-game skid and the Tampa Bay Rays beat the New York Yankees 8-3 Thursday.

Longoria reached 500 career RBI with a sacrifice fly in the third inning. He homered against Andy Pettitte (5-5) leading off the sixth and connected off Joba Chamberlain to open the eighth.

Yunel Escobar hit a two-run shot off Boone Logan later in the eighth. Tampa Bay had 14 hits after amassing 15 in a 6-2 win over Boston on Wednesday.

Moore (9-3) pitched into the seventh inning and gave up three runs.

TWINS 8, WHITE SOX 4: Brian Dozier’s two-run homer for Minnesota was one of a career-high four long balls hit off Chicago starter John Danks, and the host Twins finished their first three-game sweep of the season and their first over White Sox in three years.

Oswaldo Arcia went deep in the second inning ahead of Dozier. Clete Thomas and Eduardo Escobar hit back-to-back shots in the fourth, sending the White Sox to their seventh defeat in the last eight games. They fell to a league-worst 13-28 on the road and 5-13 in June.

RANGERS 4, ATHLETICS 3: Ian Kinsler put host Texas ahead for the first time with a two-run single in the seventh and the Rangers held on for a series-clinching victory over AL West-leading Oakland.

Texas pulled within a game of the Athletics by winning three times in the four-game series.

NATIONAL LEAGUE

PIRATES 5, REDS 3: Pedro Alvarez drove in all of Pittsburgh’s runs with a solo homer, bases-loaded double and single, leading the Pirates to a victory over host Cincinnati and a split of their high-profile NL Central series.

The Pirates remain a half-game behind second-place Cincinnati after the four-game set.

Alvarez had an RBI single and his 16th homer off Homer Bailey. After Alfredo Simon (5-3) loaded the bases in the seventh, Alvarez doubled off left-hander Tony Cingrani to snap a 2-all tie.

METS 4, BRAVES 3: David Wright hit two solo homers, New York’s bullpen pitched five-plus scoreless innings and the visiting Mets overcame an injury to starting pitcher Jonathon Niese in a victory against Atlanta.

Niese left the game in the fourth with left shoulder discomfort and the Mets trailing 3-2, but the Mets’ bullpen shut down Atlanta for the next 52/3 innings.

Closer Bobby Parnell earned his 11th save in 14 chances.

NATIONALS 5, ROCKIES 1: Jordan Zimmermann pitched eight innings to win his 10th game, Adam LaRoche had three hits including a two-run triple and the host Nationals spoiled Roy Oswalt’s return to the majors with a win over Colorado.

CARDINALS 6, CUBS 1: Lance Lynn earned his 10th victory to tie for the NL lead, Matt Holliday homered and drove in two runs, and host St. Louis beat Chicago.

INTERLEAGUE PLAY

ASTROS 7, BREWERS 4: Carlos Pena hit a three-run homer in the 10th inning, giving host Houston a win over Milwaukee.

Carlos Corporan struck out but reached on a wild pitch with one out in the 10th and J.D. Martinez followed with a double. Pena then launched the first-pitch homer off Michael Gonzalez (0-3) to right field.

It was a sloppy game that featured six unearned runs and four errors.