New Zealand captain Kane Williamson says they must learn ahead of their next game after their defeat to England.