Updated

By Larry Fine

NEW YORK (Reuters) - The New York Knicks rained down a torrent of three-pointers in the fourth quarter to gain the upper hand and beat the NBA champion Dallas Mavericks 104-97 on Sunday before a raucous crowd at Madison Square Garden.

Sharp-shooter Steve Novak provided a spark by scoring 14 of New York's first 15 points in the final quarter, including four three-pointers, and Jeremy Lin supplied the finishing touches as the Knicks ended the Mavs' six-game winning streak.

It was a game of shifting momentum, with each team taking their turn to dominate on the court before New York surged to victory to improve their record to 16-16.

Dallas slipped to 20-12.

Lin scored 28 points to lead the Knicks, whose seven-game winning streak was snapped on Friday by the New Orleans Hornets, and handed out 14 assists, including the last two baskets that iced the New York victory.

Dirk Nowitzki poured in 34 points for Dallas, and was 4-of-5 from three-point range.

(Reporting by Larry Fine, Editing by Pritha Sarkar)