Trent Boult's stunning bowling led New Zealand to a 183-run victory over Pakistan in the third ODI, dismissing them for just 74 runs.