Nets rally from 12 down in 3rd, beat Pacers 97-86