Mark Teixeira hit the tiebreaking homer two pitches after Johnny Damon went deep in the eighth inning Sunday night, and the Yankees went on to beat the Red Sox 5-2 and complete their first four-game home sweep of their bitter rival in 24 years.

The two home runs came off off Daniel Bard couldn’t have come at a more perfect time. The inning before, Victor Martinez hit a two-run shot off Phil Coke. That jack had snapped the Red Sox’s 31-inning scoreless stretch.

Alex Rodriguez homered in the seventh inning to break the scoreless game and Nick Swisher added a two-run single later in the eighth to pad the lead.

The Bombers have won seven straight and built a 6½-game lead in the AL East — and have never failed to win the division when leading by more than six.

The Red Sox finished the disastrous series 3 for 38 with runners in scoring position, scoring two runs total the final three games. Their ugly scoreless streak against New York was Boston’s longest since a 34-inning stretch from Sept. 1-24, 1952.

Mariano Rivera worked around a leadoff single in the ninth for his major league-leading 32nd save.

A pitching duel between Andy Pettitte and Jon Lester began dissolving when Rodriguez hit a solo shot leading off the seventh inning, giving him 574 home runs and breaking a tie with Harmon Killebrew for ninth on the all-time list.

Pettitte gritted through seven innings, allowing five hits and two walks. He even out-pitched Lester – in my opinion — after Boston’s hard-throwing left-hander went seven innings and allowed one run.

The Yankees outscored the Red Sox badly, 25-8 in the sweep, which was a big reversal over the first 8 games between the two teams.

Like a friend said last night on Twitter, it’s momentum that carries a team. The Yankees have this huge momentum, of winning 31 of their last 41 games while the Red Sox have lost 14 of their last 21. The Yankees have all cylinders running and this is starting to look like the real Yankees.

Today they welcome back Toronto and it’s the R—————- guy against Sergio Mitre at 7:05pm.