Magic snap 5-game skid with 133-127 victory over Pelicans