Alex Rodriguez had three hits and Curtis Granderson scored three times for the Yankees, who improved to 3-0 against Boston this year.
David Ortiz and Adrian Gonzalez had three hits apiece for Boston, and Jarrod Saltalamacchia hit a three-run homer to help the Red Sox rally after Josh Beckett gave up five runs in the top of the first inning.
It was 5-all after the first inning.
Boone Logan (4-0) wound up with the win and Andrew Miller (2-1) took the loss. Rafael Soriano got four outs for his 20th save — his first save of more than one inning since 2007.
WHITE SOX 4, BLUE JAYS 2
CHICAGO (AP) — Jake Peavy pitched one-run ball into the eighth inning for his first victory since May 26, A.J. Pierzynski homered and the Chicago White Sox won their fourth straight.
On a night when the game-time temperature was 91, the White Sox finally got Peavy some runs and helped him end his skid. He'd been 0-4 in his previous four starts — throwing two complete games — when Chicago scored only two runs total during those losses.
Peavy (7-5) allowed five hits in 7 1/3 innings, walked two and struck out seven. He threw 115 pitches on the steamy night and left to a big ovation after retiring the leadoff hitter in the eighth.
Addison Reed earned his 13th save in 14 chances despite giving up a run in the ninth.
Aaron Laffey (0-1) took the loss.
RAYS 10, INDIANS 3
CLEVELAND (AP) — Luke Scott snapped his team-record hitless streak with a two-run homer and the Tampa Bay Rays broke out of their slump by routing the Cleveland Indians.
Scott was 0 for 41 since June 1 until connecting against Justin Masterson (5-8) in a six-run fifth inning. Tampa Bay had scored more than four runs in a game only once in its previous 11 contests.
Alex Cobb (4-5) overcame a shaky start to pitch six innings and win for the second time in seven decisions since May 30.
Ben Zobrist had a two-run homer as the Rays broke Cleveland's three-game win streak and improved to 5-13 against the AL Central.
TIGERS 4, ROYALS 2
DETROIT (AP) — Rookie Drew Smyly struck out a career-high 10 in six impressive innings and Delmon Young homered as the Detroit Tigers beat the Kansas City Royals.
The win got the Tigers (42-42) back to .500 for the first time since May 15. They had failed the last eight times when needing one win to reach the mark.
Smyly (4-3) allowed two runs on six hits and didn't walk a batter. He was the first Tigers rookie to reach double figures in strikeouts since Mark Leiter had 10 in 1991. Four Detroit relievers finished, with Jose Valverde pitching the ninth for his 16th save.
Jonathan Sanchez (1-5) had his winless streak extend to 10 starts, allowing four runs in 5 2-3 innings.
TWINS 5, RANGERS 1
ARLINGTON, Texas (AP) — Joe Mauer and Justin Morneau of New Westminster, B.C., drove in two runs each, Francisco Liriano pitched around six walks and the Minnesota Twins handed the Texas Rangers their season-high fifth straight loss.
Liriano (3-7) allowed five hits and one run with six strikeouts in 6 2/3 innings, and the Rangers scored two runs or fewer for the fourth time in five games.
The Twins touched Rangers rookie left-hander Martin Perez (1-1) for four runs in first four innings, but two were unearned after first baseman Mike Napoli misplayed a popup.
Rangers slugger Josh Hamilton left the game with back spasms soon after misplaying Brian Dozier's fly ball for a three-base error and making a long throw from the warning track in the fifth inning.
ORIOLES 3, ANGELS 2
ANAHEIM, Calif. (AP) — Steve Pearce hit a three-run homer, Miguel Gonzalez pitched seven stellar innings in his first career victory, and the Baltimore Orioles hung on to beat the Los Angeles Angels.
Gonzalez (1-0), who is from the nearby San Fernando Valley, yielded three hits and a run while striking out six to win his first major league start, delighting a few dozen friends and family members at Angel Stadium.
C.J. Wilson (9-5) allowed four hits and three walks over seven innings in his final start before his All-Star game appearance, but the Angels lost with the left-hander on the mound for the first time in nine starts since May 17.
Mark Trumbo and Mike Trout homered for Los Angeles, which has lost two of its last seven against Baltimore.
ATHLETICS 4, MARINERS 1
OAKLAND, Calif. (AP) — Chris Carter hit a three-run homer in the bottom of the 11th inning, powering the Oakland Athletics past the Seattle Mariners to match a season-high five-game winning streak.
Carter sent the 0-1 pitch from Steve Delabar deep into the stands in left field to bring the A's back to .500 for the first time since May 22.
Josh Reddick flicked a single to left off Oliver Perez (0-1) to start the final rally. After Yoenis Cespedes flied out to right, Seth Smith hit a checked-swing infield single near third base to chase Perez and set the stage for Carter's homer.
Jordan Norberto (1-1) struck out Seattle's side in the 11th for his first career win.