Lackey (6-3) gave up eight hits and piled up nine strikeouts without walking a batter over 6 1/3 innings to win for the fourth time in his last five decisions.
Chris Capuano pitched out of a bases-loaded jam in the seventh inning and Junichi Tazawa fanned two in a 1-2-3 eighth frame. Craig Breslow allowed a single to Chris Johnson to start the ninth, but then retired the next three hitters.
There was plenty of fanfare leading up to the first pitch. Prior to the game, the Red Sox honored the 2004 championship team that broke the 86-year drought of winning the World Series. Manny Ramirez, who was signed to a minor league contract as a player-coach for the Cubs last weekend, sported a mohawk haircut as he threw out the ceremonial first pitch, which was picked off by Johnny Damon and then flipped to home plate. Pedro Martinez was also on hand, as well as many other members of the title team.
Gavin Floyd (0-2) surrendered six hits and a pair of runs -- one earned -- over five frames. He lost for the first time in eight career decisions against the Red Sox.
The NL East leaders, who left 10 men on base, had nine hits, two from prospect second baseman Tommy La Stella in his major league debut.
Gomes legged out an infield hit in the second inning and went to second on Ramiro Pena's throwing error. Gomes then advanced to third o a wild pitch, and two batters later scored when Daniel Nava grounded into a double play.
Xander Bogaerts, who had three hits, doubled in the third and scored later in the frame on Pierzynski's base hit to center.
Bradley's slicing double to left in the sixth plated Gomes for a 3-0 lead before Lackey was ousted in the seventh after giving up consecutive singles to La Stella and Pena. Capuano then retired Jason Heyward on a ground ball before walking B.J. Upton, but Freddie Freeman grounded out to second to cap the inning.
It became a four-run margin in the bottom half when Gomes singled to left to drive in Dustin Pedroia.