LOS ANGELES — Dennis Schröder scored 24 points, Kyle Kuzma added 21 and the Los Angeles Lakers rallied in the fourth quarter to defeat the Orlando Magic 96-93 Sunday night.

Montrezl Harrell added 18 points and 11 rebounds for Los Angeles, which has won two in a row without LeBron James and Anthony Davis. However, the Lakers had a tough time trying to shake the Eastern Conference’s second-worst team.

Orlando’s Otto Porter Jr. had a clean look at a 3-pointer to send it to overtime, but the shot hit the rim.

“It wasn’t pretty, but we played well. This is a tough shooting night, but our defense carried us through,” Lakers coach Frank Vogel said.

Los Angeles improved to 2-3 without James and Davis. They are fourth in the Western Conference at 30-17 and are 2 1/2 games in front of Denver and Portland. They are also two games behind second-place Phoenix and a game in back of the third-place LA Clippers.

“We’re not playing for holding on. We’re paid to do the same job, which is win games,” Harrell said. “We’re going to try to continue to keep rolling until they get back.”

Kuzma, who also had 11 rebounds for his 12th double-double of the season, said the Lakers got plenty of open looks, but were not unable to convert until late. Los Angeles made only 41.6% of its shots from the field for its sixth-worst shooting game of the season.

“We probably got the most open looks that we’ve had all season, especially on 3-pointers,” he said.

Orlando had a 82-77 lead with 7:19 remaining after R.J. Hampton drilled a 3-pointer. The Lakers trailed 84-80 midway through the fourth quarter before going on a 12-1 run to seize control as Schröder and Kuzma each had five points.

Los Angeles had a seven-point lead with under three minutes remaining, but the Magic got within three going to the final possession.

Dwayne Bacon led the Magic with 26 points and Chuma Okeke scored 14. Orlando (15-31) has dropped 13 of 15.

Even though he has plenty of moving pieces after five players were moved at the trade deadline, Orlando coach Steve Clifford was frustrated with his team’s failures to execute down the stretch.

“We fouled unnecessarily, played undisciplined defense and missed blockouts,” he said. “We played hard and didn’t play smart. The game was there to be won. Nobody knocked it out of the park.”

There were nine lead changes and three ties during the first 13 minutes before the Lakers went on a 17-3 run to go up 39-26 with under three minutes remaining in the second quarter. The Magic rallied to get it down to a five-point deficit at halftime (44-39) as Bacon had seven points down the stretch.

Markieff Morris’ 3-pointer gave the Lakers a 61-53 lead before Orlando scored eight straight to tie it at 61 with 2:12 remaining in the third quarter. There were three more ties in the quarter as it was 69-all going into the final 12 minutes.