BOSTON (AP) — Edwin Encarnacion hit a pair of two-run homers as the Toronto Blue Jays beat the Red Sox 7-4 on Tuesday, handing Boston its fifth straight loss.

Melky Cabrera and Erik Kratz also homered for the Blue Jays, who won their second straight and sixth in eight games.

J.A. Happ (3-1) struck out six in the first three innings and picked up his third win in four starts since joining the rotation.

Jonny Gomes hit a two-run homer for Boston. The losing streak is the longest for the Red Sox since 2012.

In an interleague game, Masahiro Tanaka had his regular-season unbeaten streaked broaken at 42 starts, allowing a career-high four runs in six innings as the last-place Chicago Cubs beat the New York Yankees 6-1.

The Cubs honored the retiring Derek Jeter before the game, then handed Tanaka his first loss in nine major league starts.

Tanaka (6-1) had been 34-0 in Japan and North America the last two seasons. He did drop Game 6 of the Japan Series last year before earning the save in Game 7. He hadn't lost a regular-season game since the Seibu Lions beat the Rakuten Golden Eagles on Aug. 19, 2012.

At Atlanta, Julio Teheran pitched a six-hitter for his second shutout of the season and Justin Upton had three RBIs as the Atlanta Braves won their third in a row, beating the slumping Milwaukee Brewers 5-0 in the National League.

It was another in the matchup between first-place teams, the Braves jumping ahead with three runs in the third and cruising to victory after opening the series with a 9-3 rout.

The Brewers have lost four in a row overall, their longest skid of 2014.

In other NL games, the Colorado Rockies edged the San Francisco Giants 5-4, the St. Louis Cardinals blanked the Arizona Diamondbacks 5-0, the Washington Nationals downed the Cincinnati Reds 9-4, the Florida Marlins outlasted the Florida Marlins 6-5 and the Los Angeles Dodgers were 9-4 winners over the New York Mets.

In the day's other interleague game, the Baltimore Orioles downed the Pittsburgh Pirates 9-2.

In the AL, Drew Pomeranz won his third consecutive start since moving from the bullpen into the rotation and Coco Crisp drove in two runs before departing with an injury as the surging Oakland Athletics beat the Tamp Bay Rays 3-0.

Pomeranz (4-1) allowed three hits, two walks and had three strikeouts over five innings. He has not given up a run in his three starts, all of which lasted five innings.

Crisp hit a two-run double and John Jaso had an RBI single off Jake Odorizzi (2-4) as Oakland took a 3-0 lead in the second.

The AL West-leading Athletics have won 10 of 11, outscoring their opponents 74-18 over the stretch.

In other games, the Cleveland Indians beat the Detroit Tigers 6-2, the Seattle Mariners downed the Texas Rangers 6-2, the Chicago White Sox edged the Kansas City Royals 7-6 and the Los Angeles Angels defeated the Houston Astros 9-3.