Smith and Brook put on a magnificent stand of 303 but England collapsed twice to remain firmly on the back foot