Here are some steps you can follow to teach your dog to come when called:
1. Start indoors at shorter distances, like 10 or 15 feet. Show your dog the toy or food that you will use as an incentive to encourage them to come back.
2. Run away a couple of paces then call your dog's name and say "come" in a friendly, exciting tone - getting down low can also encourage them to come back.
3. When your dog comes to you, reward them with the toy or food.
4. Gradually increase the distance between you and your dog and practice in different locations with more distractions.
5. Practice calling your dog from different rooms in your house.
6. Practice calling your dog when they are distracted by something else.
Remember that training takes time and patience. Be consistent and positive with your dog and they will learn quickly.
Here is a link to a more detailed guide on how to train your dog to come when called from the RSPCA website: https://www.rspca.org.uk/adviceandwelfare/pets/dogs/training/come