Harry Brook made 171 as England took a first innings lead of 151 and claimed two early New Zealand wickets.