Leveling can be done many ways, such as the old, amateur way of just fighting until you are level 100. The best way is certainly to EV train. Different pokemon give out different EVs (effort values) according to their stats.
Based on how your pokemon may lack or succeed, train them for certain stats.