Earthworms are hermaphrodite, contains both eggs and sperms. When mating, the two worms are lined up against each other with each head facing in opposite directions. Sperms are only passed from each other which then fertilize each other's eggs. Then a cocoon forms in each worm. In spite of having both eggs and sperms, why do earthworms do not self-fertilize?
The earthworms are hermaphrodites. They can produce egg and sperms in the same body. They cannot reproduce by self-fertilization. The reason is that the male and the female sex organs do not mature at the same time.