Ali hits ton as England consolidate position on day two