Rachin Ravindra played a responsible knock of 112 runs to pull New Zealand out of a tough situation and beat Bangladesh by five wickets in a Champions Trophy match here on Monday.