Each world has a specific spawn point. To return to the spawn type /spawn.
Ships to all worlds are in the Shipyard spawn. If you’re in a world other than Shipyard and want to go to a different world, type /spawn, turn around, and board the ship that is docked at that spawn point. That will take you back to the Shipyard.
If you want to return to your home rather than the spawn use /home