New Zealand pull off unlikely Test victory over England by 1 run