An injured Martin Gupitll helped steer New Zealand to a three wicket win against England in the first one-day international.