NEW YORK (AP) -- David Ortiz hit his 450th homer, a colossal three-run drive, and Dustin Pedroia had three RBIs during his second consecutive three-hit game to lead the Boston Red Sox over the New York Yankees, 8-5, Sunday night.

John Lackey (9-5) labored through five innings before four Red Sox relievers pitched shutout ball the rest of the way. Boston took two of three in the series to finish a 4-6 road trip and improve to 6-13 away from home this month.

Mark Teixeira and Carlos Beltran homered for the Yankees, who have dropped six of eight. Rookie right-hander Chase Whitley (3-2) struggled for the second straight start, allowing five runs and eight hits in four-plus innings, as six New York pitchers combined for eight walks.

Koji Uehara worked a perfect ninth for his 18th save in 19 attempts.