Jalen Brunson scored 40 points as the New York Knicks beat Orlando Magic 132-120 in Las Vegas, reaching their first NBA Cup final.