The term "worm" is a description of a body shape. A worm had a long, thin body. Aew all worms in the same phylum? How do you know?

http://www.wigglyworld.org/worm-classification/