DIRK NOWITZKI and the Dallas Mavericks finally have the lead in these ultra-close NBA Finals, and now it really is "now or never" for LeBron James and the Miami Heat.

Nowitzki scored 29 points, driving for the go-ahead dunk with 2:45 remaining, and the Mavericks beat the visiting Heat, 112-103, last night to take a 3-2 lead in the NBA Finals.

Five years after going up 2-0 on the Heat, the Mavs finally got that elusive third victory, and can wrap up their first championship in Game 6 at Miami on Sunday night.

"We're a very resilient team, you know that," guard Jason Terry said. "We've been in tough battles all playoffs long. It's not going to stop. It's going to get even harder. But we're ready. We're determined, and this is our time."

James, who called this game "now or never," responded from his worst playoff performance with 17 points, 10 rebounds and 10 assists, and Dwyane Wade battled through a sore left hip after a first-quarter collision to finish with 23 points.

They get the final two games at home, but history is against them as they try to win a title in their first season together: In the 26 previous times finals that were tied 2-2, the Game 5 winner won 19 of them.

The Mavs shot 60 percent through three quarters, briefly gave up the lead in the fourth, then controlled the final few minutes, just as they had in thrilling comebacks in Games 2 and 4.

This time, they got to play from ahead thanks to some sizzling shooting: 56.5 percent from the field, including 13-for-19 (68 percent) from three-point range.

Terry scored 21 points and J.J. Barea had 17 for the Mavs, with Nowitzki briefly throwing both arms in the air as he walked off the court surrounded by a sea of blue fans who hope he'll bring home a championship trophy if they can pull out another victory in Miami.

"I felt great. I felt great. I was in rhythm tonight," Terry said. "I came out aggressive, something we have to continue to do. We're not happy with our defensive performance, but offensively, if we score 100, I told you what would happen."

Their offense was simply too good, despite a good bounce-back for James.

James scored eight points, going just 3-for-11 in Game 4, the first time in 90 postseason games he didn't hit double figures. It's been a rough first Finals in Miami for James, who has been accused of everything from "shrinking" to "checking out" in the fourth quarters, when he had just nine points through the first four games.

Trying to pump himself up, James wrote "Now or Never!!" on his Twitter page early yesterday morning, later calling this the biggest game of his career.

But they feel the same urgency in Dallas, where the slogan "The Time is Now" is printed on those blue T-shirts that surround the court, and where the Mavs are loaded with 30-somethings - late 30s, in Jason Kidd's case - who could be on their last shot at an NBA title.

Nowitzki said early yesterday he felt "great," having shaken the fever that rose to 101 degrees Monday night. This time, the health concern was Wade, who banged his hip in the first quarter and appeared to be limping at various points from there.

Wade walked gingerly to the locker room with a left hip contusion with about 3 minutes left in the period after colliding with Mavs reserve Brian Cardinal on a drive to the basket, and didn't return to the bench until more than 3 minutes into the second.

By then, the Mavs seemed in too good a groove to be cooled off no matter who Miami had out there.

A disgusted Heat coach Erik Spoelstra was already walking onto the court to call time out by the time Tyson Chandler went up to dunk after catching the ball all alone under the basket, giving Dallas a nine-point lead that matched its largest of the series. Miami trimmed it to 84-79 after three quarters, then stormed into the lead midway through the fourth with a 9-0 run, all layups, dunks and free throws until Wade's three-pointer made it 99-95 with 4:38 to play.

The Mavs tied it at 100 on Terry's three-pointer with 3:23 left, and after James missed, Nowitzki drove for a baseline dunk and a 102-100 lead with 2:45 to go. James was called for an offensive foul and missed a three-pointer on Miami's next two possessions before Kidd drilled a three-pointer to make it 105-100, sending the crowd into a delirious chant of "Beat the Heat! Beat the Heat!"

The teams were at the same point as their 2006 matchup after four games, but that one was already in the midst of a massive swing by then. Miami won the final four games behind Wade, the MVP of that series who had been Miami's best player in this one, averaging 29.8 points.

This one has been the developing into one of the closest Finals the NBA has ever seen. There hadn't been three straight games decided by three points or fewer in the championship round since 1948, according to STATS, LLC, when the Baltimore Bullets and Philadelphia Warriors played Games 2-4 within a three-point margin during the Basketball Association of America finals, a year before that league merged with the National Basketball League to become the NBA.

The first four games were determined by 15 total points, the fewest since a 12-point difference between the Celtics and Lakers in the 1969 Finals.

Noteworthy

* The Milwaukee Bucks have given the Detroit Pistons permission to interview assistant Kelvin Sampson for their vacant head coaching job, a person with direct knowledge of the situation told the Associated Press yesterday.

The person requested anonymity because of the confidential nature of the Pistons' search.

Sampson has been an assistant to Bucks head coach Scott Skiles since May 2008.

* Former NBA All-Star Mike Mitchell, who played 10 seasons for the Cleveland Cavaliers and San Antonio Spurs, died after a struggle against cancer. He was 55. Mitchell died in San Antonio after the former Auburn star fought the disease for 2 years, said his son, Mike Mitchell Jr.