Moeen Ali made a superb century to lift England to 328 all out after Pakistan had taken four early wickets on the first day of the final Test at The Oval on Thursday.