Sweepers need an attacking stat , (Atk or sp atk) and speed. They generally have low defenses.
Tanks need an attacking stat too, and sometimes speed, but usually it has one powerful defensive stat (defense and sp defense) so it can take hits.
Walls or stallers need high defenses and preferably decent hp so they can survive long.