Guest it could be a number of things and without seeing the problem it is difficult to know which. Would suggest you take the dog to the vet to make sure he is in good health, and if he is ask the vet to recomend a trainer you could see to sort the problem or you could pick one from
this site they should come out with you and watch the situation and then be able to give the right advice. Would love to be able to help you but think you will understan that the wrong advice is worse than no advice. Hope you have it sorted soon, in the mean time try to avoid the situation.