England were helped on their way to a slim advantage over New Zealand in the third Test as Kane Williamson got in a tangle with a Matthew Potts delivery.