Sixers win NBL Cup thriller over Phoenix