According to the evolutionary theory, formation of a new species is generally due to:

Accumulation of variations over several generations

Variations when accumulate will lead to natural selection and natural selection is based on survival of the fittest. So, a new species is formed when nature starts selecting species that can survive well.

58