The nightcrawler, a common earthworm, belongs to the phylum Annelida. This is the group of segmented worms, which also includes leeches and marine bristle worms.
So if you're classifying a nightcrawler, Annelida is the correct phylum.