The Red Sox had a tough time controlling the Yankees.
Boston was up 1-0, and in the sixth inning, the Sox had the bases loaded.
Boston reliever Ryan Madson struck out a man and walked a batter.
But on the next pitch, shortstop Ryan Sweeney struck out Matt Boyd and scored on an error by reliever Michael Pineda.
The Red Wings scored the next three runs to tie the game.
The Sox had to score the final run of the game, which came on a double by Ryan Sweeney.
Boston won 4-3.
Boston has won four straight.
The Yankees won their first four games, but the Red Sox are winning their next three.
They have won nine of the last 10.
Red Sox lead series 2-1.
Yankees lead series 3-1 Yankees won Game 2 at Yankee Stadium, 4-2.
Yankees scored the first run of Game 3 at Yankee Bank Field, 2-0.
Yankees tied the game with a two-run homer by Andrew Miller in the bottom of the eighth.
Yankees have won four in a row, but have lost three in a week.