Training a dog can be difficult unless you have the right methods.
Dogs are pack animals, and they consider you part of the pack. However, unless your dog sees you as the leader of the pack, you won't be able to get them to mind you.
You will not be able to eliminate all the bad behaviors such as; dog jumping up, pulling on the leash, excessive barking, etc. until you understand how they think.
Each Breed is a bit different for training and click here for a guide on each breed and age of dog for training