Pascal Siakam scored 30 points and grabbed 10 rebounds and the Toronto Raptors defeated the visiting Orlando Magic 115-102 Sunday night at Tampa to end a three-game losing streak.

It was the third straight loss for the Magic, who have won twice in their past 13 games.

Kyle Lowry added 12 points and had a season-best 15 assists for the Raptors, who visit Orlando on Tuesday. DeAndre’ Bembry and Terence Davis had 12 points each, Yuta Watanabe added 11 points while Aron Baynes had eight points and a season-best 16 rebounds.

Cole Anthony had 16 points and Nikola Vucevic had 15 points and 14 rebounds for the Magic. Aaron Gordon had 14 points before leaving the game with a left-ankle sprain with 1:14 to play in the third quarter and did not return. Dwayne Bacon added 13 points and Evan Fournier had 11 points.

The Raptors led by as many as 16 points during the second quarter and again in the third quarter before they took an 11-point lead into the fourth.

A 3-pointer by Vucevic cut the lead to eight points, then the Raptors opened an 18-point lead on Lowry’s 3-pointer with 4:47 to play.

The Raptors led 27-15 after one quarter.

Gordon was charged with a flagrant foul one when he stepped hard into Lowry with 7:26 to play in the second quarter. Lowry hit both free throws. Toronto retained possession and Paul Watson hit a 3-pointer and Toronto led 40-27. Gordon went to the locker room and returned later in the quarter.

The Raptors stretched the lead to 16 before Orlando responded with an 8-0 run. The Magic got within five points but when Lowry beat the buzzer with a layup, the Raptors led 58-44 at halftime.

Siakam’s dunk had Toronto ahead by 16 with 7:15 left in the third quarter.

Anthony completed the third-quarter scoring with a 20-footer to cut Toronto’s lead to 84-73.