James Harden scored 51 points as the Cleveland Cavaliers defeated the Indiana Pacers 128-119 in an NBA Cup game on Friday night.