Dragon Ball Z began in Japan as a manga by Akira Toriyama, running in Weekly Shonen Jump from 1988, and was animated by Toei as the sequel to the original Dragon Ball series.
The American version arrived later and was not a straight translation. Early syndication and the Funimation dub reworked dialogue, music and episode order, and the franchise only became a genuine phenomenon in the West once it settled on Cartoon Toon's after-school block in the late 1990s.
So the sequence is straightforward: Japanese manga first, Japanese anime second, American broadcast and localisation third.