Pakistan suffered their first-ever series whitewash on home soil after England won the third Test in Karachi.