England's Harry Brook reached his first Test double century by easing the ball off the off side against Pakistan.