You typically need a male and female to breed. However, Ditto can breed with any Pokémon regardless of its gender.