Worm are long soft-bodied invertebrate animals, the best known of which is the earthworm. These are members of the phylum Annelida, and there are hundreds of thousands of other species that live in a wide variety of habitats including soil.