During natural selection animals (example) choose the traits they best like to continue breeding with. Variation helps this by providing both good and okay (bad) things too choose from.
Once natural selection has occurred, the population has a whole will evolve by leaving behind the undesired traits.