Fast bowler Oshane Thomas took four wickets as Pakistan were bundled out for their second-lowest World Cup total of 105.