New Zealand defeat Pakistan 5-3 in Azlan Shah Cup