Say I left when you and I were both 20 years old, and when the ship returns my age is 30 but your age is 50. That means that when you turn 30, if you're looking through the wormhole you can see me say "well, I've just landed back on Earth, in your backyard" and if you look out your window you don't see a ship in your backyard, but if you look through the wormhole you can see the ship is indeed in your backyard, but it's your backyard as it will look 20 years in the future...you could even see your 50-year-old self come on board the ship to greet me on my return, and you and he could have a conversation! Then when you turn 50, you can actually see the ship return and land in your backyard without having to look through the wormhole, and you can step on the ship to greet me, then look through the other end of the wormhole that was carried on the ship and see your 30-year-old self, and have a conversation with him.
In this type of scenario the 30-year-old version of you could even step through the wormhole on Earth and find himself on the parked ship 20 years in his future, or the 50-year-old version could step through the wormhole on the parked ship and find himself on Earth 20 years in his past. That's why a wormhole could work as a time machine according to general relativity, although there's speculation that quantum effects could actually destroy the wormhole if you tried to do something like this (assuming traversable wormholes are possible in the first place, they are theoretically allowed in general relativity but there's no obvious procedure for creating one if you don't have one already, and they would require "exotic matter" to hold them open).