Taxi your pup for about one month (until the pup is about 3 months old as this should give the pup enough time to develop some bladder and bowel control). By doing so, you will prevent many mistakes. At the same time you will train a stong preference in your pup to eliminate in your chosen spot. The pup will also learn that being picked up gets - kisses !
It's not so much the dog doesn't listen, more that he doesn't understand what you want him to do. Go back to basics and don't punish him when he toilets indoors. Double your vigilance and take every opportunity to put him outside to toilet. The crucial thing is to be present when he does toilet in the correct place, so that you can reward him. This makes him keener to repeat the performance to get another treat. Conversely, if you have been telling him off for indoor accidents he may already feel inhibited about going to the toilet in your presence, including when he goes outdoors. This is one reason why it's important not to punish for inappropriate toileting.
The Monks of New Skete, who were breeders and trainers of German Shepherds in Cambridge, New York, published How to Be Your Dog's Best Friend: A Training Manual for Dog Owners in 1978 and it became an immediate best seller. Despite advocating a philosophy that "understanding is the key to communication and compassion with your dog,"[31] they endorsed confrontational punishments which were later shown to elicit dangerously aggressive responses in many dogs.[32]
Be sure to go with him and watch him and calmly praise him when he goes. Don’t go crazy praising him, or he is liable to stop, just calmly let him know that he is good! It doesn’t matter if it is 100 degrees or 10 below zero; raining or snowing, if you don’t go outside and monitor your puppy, you will not know if or when he is going potty outside which means he is likely to come back inside and go potty.
Puppies would much rather play with leaves and bugs than go potty, if you aren’t there to see that you won’t know your pup needs to go back into his crate and come out again 5-10 minutes later! He will learn to sneak away, and have accidents inside. If you leave him outside for an extended period of time, chances are when you bring him back in he will need to go outside again soon or have an accident.
Every time your dog pees or poops outside it needs to be celebrated. Give them baby talk or a treat, jump up & down, pat their little heads & remind them of how brilliant that decision was. Yes it might look silly, but your pup needs to know he’s done the best thing ever. When you consistently praise your puppy for going potty outside they’ll start to understand that it’s the correct decision, and one that leads to super fun happy time.

^ Herron, Meghan E.; Shofer, Frances S.; Reisner, Ilana R. (2009). "Survey of the use and outcome of confrontational and non-confrontational training methods in client-owned dogs showing undesired behaviors" (PDF). Applied Animal Behaviour Science. 117 (1–2): 47–54. doi:10.1016/j.applanim.2008.12.011. ISSN 0168-1591. Archived from the original (PDF) on October 29, 2012.
Dogs have become closely associated with humans through domestication and have also become sensitive to human communicative signals. Generally, they have a lot of exposure to human speech, especially during play, and are believed to have a good ability to recognize human speech. Two studies investigated the ability of a single dog that was believed to be exceptional in its understanding of language. Both studies revealed the potential for at least some dogs to develop an understanding of a large number of simple commands on the basis of just the sounds emitted by their owners. However the studies suggested that visual cues from the owner may be important for the understanding of more complex spoken commands.[81]
Non-associative learning is a change in a response to a stimulus that does not involve associating the presented stimulus with another stimulus or event such as reward or punishment.[48] Habituation is non-associative learning. An example is where a dog that reacts excitedly to a door bell is subjected to repeated ringing without accompanying visitors, and stops reacting to the meaningless stimuli. It becomes habituated to the noise.[49] On the other side of habituation is sensitization. Some dogs' reactions to the stimuli become stronger instead of them habituating to the repeated stimuli or event.[50] Desensitization is the process of pairing positive experiences with an object, person, or situation that causes fear or anxiety.[51] Consistent exposure to the feared object in conjunction with rewards allows the animal to become less stressed, thereby becoming desensitized in the process. This type of training can be effective for dogs who are fearful of fireworks.[52]
Unless you plan to keep your dog outdoors--and few of us do because it's not recommended--you'll need to teach your dog where to eliminate. Therefore, house training (also called housebreaking or potty training) is one of the first things you need to work on with your dog. Crate training can be a very helpful part of the training process. This includes house training as well as many other areas of training:
×