NEW YORK (AP) -- J.D. Martinez hit three homers and had six RBIs as the Detroit Tigers trounced the New York Yankees 12-4 Sunday to end a four-game losing streak.
Martinez connected off Masahiro Tanaka (4-3) in the first. He struck out looking in the third and led off the fifth with another homer against the Japanese right-hander, who allowed three long balls for the first time in his big league career.
Martinez then went deep off Danny Burawa with two on in the sixth. With a chance to tie the major league record for homers in a game, Martinez flied out to right in the eighth.
Victor Martinez homered and drove in four runs for the Tigers.
Anibal Sanchez (6-7) lost his scoreless streak at 21 2-3 innings when Brian McCann homered.
Stephen Drew hit two home runs for the Yankees, who had won four in a row.
Washington's Bryce Harper and Yunel Escobar homered during a nine-run burst in the first inning to lead the Nationals over the Pittsburgh Pirates 9-2.
Gio Gonzalez (5-4) pitched seven shutout innings as the Nationals completed a three-game sweep.
Pittsburgh arrived at Nationals Park this weekend with an eight-game winning streak. Max Scherzer came within one strike of a perfect game while throwing a no-hitter Saturday, and rookie Joe Ross struck out 11 in the series opener.
In Kansas City, Missouri, David Ortiz passed two Hall of Famers with his 476th home run as the Boston Red Sox banged out 13 extra-base hits in a 13-2 win over the Royals.
Hanley Ramirez hit his team-best 15th homer and Mookie Betts also went deep for the Red Sox, who set a season high for runs. Xander Bogaerts had three doubles, and Wade Miley (7-6) pitched six scoreless innings.
Ortiz homered leading off the fourth to move past Stan Musial and Willie Stargell into 28th place on the career home run list.
The Philadelphia Phillies downed the St. Louis Cardinals 9-2 after Adam Morgan won his major league debut in surprising style, outpitching Michael Wacha.
Winless in the minors this year, Morgan (1-0) allowed one run and six hits in 5 2-3 innings, striking six and walking two against the team with the best record in the majors.
The 25-year-old lefty had been 0-6 in 13 starts at Triple-A this season, and was 13-28 lifetime in the minors. He was called up before the game to pitch in place of Jerome Williams, who's out with a strained left hamstring.
.J. Hardy hit a tiebreaking single in the ninth inning as the Baltimore Orioles recovered after conceding a seven-run lead to beat the Toronto Blue Jays 13-9. Jimmy Paredes hit a three-run homer and Chris Davis added a solo shot as the Orioles improved to 13-4 since June 4.
In other games, Roberto Perez slid home with the winning run on David Murphy's bases-loaded sacrifice fly in the ninth inning as the Cleveland Cavaliers defeated the Tampa Bay Rays 1-0, the Chicago Cubs blanked the Minnesota Twins 8-0, the Cincinnati Reds downed the Miami Marlins 5-2, the Atlanta Braves shut out the New York Mets 1-0 and the Chicago White Sox overcame the Texas Rangers 3-2 after 11 innings.
The Oakland Athletics withstood another home run by Albert Pujols to beat the Los Angeles Angels 3-2, the Houston Astros downed the Seattle Mariners 6-2, the Colorado Rockies defeated the Milwaukee Brewers 10-4, the Arizona Diamondbacks beat the San Diego Padres 7-2 and the Los Angeles Dodgers were 10-2 winners over the San Francisco Giants.