It’s very important for a dog to learn how to come to its owner, so the dog stays away from dangerous situations, or if you drop the leash. To start, first put a leash on your dog and make sure she’s collared.
Then stoop down or crawl on the ground at the dog’s level. Say “come” while pulling the leash. When the dog comes to you, give him affection and a treat to reinforce the command. Once the dog is nailing this command every time, remove the leash and practice the same in an enclosed area.