how do you do it? you gotta earn respect! lol anyway most dogs grown to like me since i gave it food and water. you can call the dog over to you but if it comes slowly keep calling it. when its close enough slowly reach one of your hands to pet it because doing it fast might make it run away.
That's like asking how to make a man understand how a woman thinks. Or how anyone thinks, really. But, just praise the dog. Give it a treat every once in a while. Scratch behind the ears or rub the belly. You can't MAKE anything happen, really. Did you hurt the dog? Purposely? Cause that will most likely stand up in the dog's mind and memories for quite a while. It will always doubt you, if you purposely (or accidentally too, possibly) hurt it.
Dogs are like people sometimes it takes time. Is this a rescue dog because of so they sometimes have issues. Be friendly let them come to you and when they do reward them by patting them on the head or telling them they're a good boy your good girl etc.
Take it for walks, dogs LOVE walks!!!!! Also, be gentle with it and talk in a kind voice. Once it gets to know you a little better than you can play with it. Also, when you first walk into the room that it's in, ignore it, don't even look at it. Wait until it comes to you and still ignore it for a little while. Let it sniff you and get to know you before you try to pet or talk to it.
Be nice to it , and you have to have good intentions, dogs know when Your a bad person, if your good and your nice to the dog, in time he should come around, if not you may have to try to find another friend!