SEOUL—North Korea demanded the return of a ship that the U.S. seized for allegedly violating sanctions, and accused the U.S. of breaching the “underlying spirit” of the countries’ pledge to forge new ties, Pyongyang’s state media said.