Harry Brook was finally dismissed for 171 as England moved 111 ahead of New Zealand in the first Test.