Sophie Devine struck a brilliant 87 runs off 57 balls to help New Zealand recover from a precarious 11-4 against England in their T20 match at Canterbury.