The phylum that includes exclusively marine worm-like animals is
Hemichordates are worm-like and are exclusively marine.
Annelids are both aquatic and terrestrial.
Ctenophores are exclusively marine but are not worm-like.
Members of Aschelminthes are worm-like but are ubiquitous (found everywhere). Many of them are parasites.