Spurred on by the speech, the Nets turned their night around and snapped a five-game skid.
Joe Johnson scored 23 points, Andray Blatche had 14 points and nine rebounds and the Nets used nine second-half 3-pointers to beat Toronto 94-88 Wednesday night, ending their season-long losing streak.
"We kind of went on a run in that third quarter and never really looked back," said Johnson, who scored 19 in the second half.
C.J. Watson scored a season-high 16 points and Williams added 12 as the Nets won for the first time since Nov. 30 at Orlando.
|More on Nets-Raptors|
|More NBA coverage|
"We'll take a win any way we can get it right now," Williams said. "It's good to get back on a winning track. It's something we needed in the worst way."
"It wasn't pretty at all, but I'll take it," Blatche said. "It was a dogfight, an ugly win, and I'll take it. We needed it and I'm just happy we got it."
Brooklyn bounced back one day after blowing a 17-point lead and losing 100-97 to the rival Knicks when New York's Jason Kidd hit a tiebreaking 3-pointer with 24 seconds left.
"Our energy was low in the first half," Nets coach Avery Johnson said. "It looked like we were kind of feeling sorry for ourselves."
Brooklyn trailed 45-37 at the half after shooting 36 percent (13 for 36) and committing 11 turnovers in the opening two quarters.
"We definitely struggled in the first half," Williams said. "We couldn't get anything going, we couldn't get stops. Nothing was going right for us."
But Williams helped turn things around, huddling his team together on the court before the game resumed.
"We've just got to come out better," Williams said, when asked about the message he'd delivered. "We need this win. The first half was over with and we've just got to go."
Go they did, making six of eight 3-pointers in the third and outscoring Toronto 31-19.
"I thought their talent took over," Raptors coach Dwane Casey said. "They hit some tough 3s that broke our back."
Leading 68-64 to begin the fourth, Johnson and Watson sandwiched 3-pointers around a jump shot by Toronto's DeMar DeRozan, putting the Nets up 74-66.
Toronto's John Lucas III made a pull-up jump shot, but the Nets replied with an 8-0 run to open a 82-68 lead with 7:42 remaining.
The Raptors battled back late, with Ed Davis scoring five points during an 8-0 run that cut it to 90-86 with 17 seconds to go. Watson made a pair of free throws to push the lead back to six before a Nets turnover led to a layup for Lucas, making it 92-88 with four seconds left. Joe Johnson sealed it with a pair of free throws, capping a 10-point fourth quarter.
"We weren't going to have any excuses if we lost this game," Avery Johnson said. "Our guys were under immense pressure and I'm glad that they responded."
Davis matched his career high with 24 points and added 12 rebounds, while Jose Calderon had 10 points and 15 assists. Rookie Jonas Valanciunas scored 15 for the Raptors, who have lost six straight and 12 of 13.
"We ran out of gas," Davis said. "We were short-handed, but we were fighting."
Toronto had just nine players available. Amir Johnson served a one-game suspension for throwing his mouthpiece at a referee in Monday's loss at Portland. Guard Kyle Lowry and forward Andrea Bargnani, both of whom left injured Monday, were unavailable. So was forward Linas Kleiza, who missed his second straight game with a sore right knee.
Toronto announced during the game that Lowry is expected to miss 10 days with a partial tear in his right triceps muscle. Bargnani is out indefinitely with a torn ligament in his elbow and a strained right wrist, suffered after he fell awkwardly on a dunk against the Trail Blazers.
Bargnani and Lowry are second and third on the team in scoring, averaging a combined 31.8 points.
Toronto recalled rookie forward Quincy Acy from Bakersfield of the NBA Developmental League to bolster the roster. Acy arrived on a flight from California about 75 minutes before game time and was on the bench in time for tip off.
|The Nets are back in the win column thanks in part to Andray Blatche, who adds 14 points and nine rebounds. (Getty Images)|
|Brooklyn (12-8) «||20||17||31||26||94|
|BKN:J. Johnson 23 Pts
BKN:R. Evans 11 Reb
BKN:J. Johnson 4 Ast
|TOR:E. Davis 24 Pts
TOR:E. Davis 12 Reb
TOR:J. Calderon 15 Ast
|Players of the Game|
Nets 2013 NBA Playoffs Blackout T-Shirt - Black
$22.95 Shop Now!
|J. Johnson, SG||43||7-14||5-6||2||4||0||23|
|D. Williams, PG||38||5-16||0-0||2||4||2||12|
|R. Evans, PF||34||3-3||3-4||11||0||2||9|
|A. Blatche, C||33||7-14||0-0||9||3||5||14|
|G. Wallace, SF||25||2-5||5-11||1||3||0||9|
|C. Watson, PG||24||4-7||4-4||6||3||2||16|
|K. Humphries, PF||18||1-1||9-10||2||0||2||11|
|K. Bogans, SG||14||0-1||0-0||2||1||2||0|
|M. Brooks, SG||6||0-0||0-0||2||2||1||0|
|M. Teletovic, PF||6||0-3||0-0||1||0||0||0|
|J. Stackhouse, SF||Did Not Play|
|J. Childress, SF||Did Not Play|
|B. Lopez, C||Did Not Play|
|T. Shengelia, SF||Did Not Play|
|T. Taylor, PG||Did Not Play|
|Complete Box Score|
|E. Davis, PF||45||11-13||2-3||12||1||4||24|
|D. DeRozan, SG||44||5-13||0-0||5||2||3||11|
|J. Calderon, PG||40||4-13||0-0||3||15||3||10|
|M. Pietrus, SG||28||2-8||1-2||2||1||5||5|
|J. Valanciunas, C||26||6-6||3-5||4||0||3||15|
|T. Ross, SG||21||3-8||0-0||2||0||1||7|
|J. Lucas, PG||19||4-10||1-3||1||1||2||9|
|A. Gray, C||17||2-4||3-4||2||1||4||7|
|A. Johnson, SF||Did Not Play|
|L. Kleiza, SF||Did Not Play|
|A. Anderson, SG||Did Not Play|
|A. Bargnani, C||Did Not Play|
|K. Lowry, PG||Did Not Play|
|L. Fields, SF||Did Not Play|
|Q. Acy, SF||Did Not Play|
|Complete Box Score|