Consistency and Patience. Never scold or punish your puppy for mistakes and accidents. The older your pup gets, the more he will be able to control his bladder and bowels. Eventually your pup will have enough control that he will be able to "hold it" for longer and longer periods of time. Let your puppy do this on his own time. When training is rushed, problems usually develop. Don't forget, most puppies are not completely house trained until they are 6 months old.
Classical conditioning (or Pavlovian conditioning) is a form of learning in which one stimulus, the conditioned stimulus, comes to signal the occurrence of a second stimulus, the unconditioned stimulus. Classical conditioning is when a dog learns to associate things in its environment, or discovers some things just go together. A dog may become afraid of rain through an association with thunder and lightning, or it may respond to the owner putting on a particular pair of shoes by fetching its leash. Classical conditioning is used in dog training to help a dog make specific associations with a particular stimulus, particularly in overcoming fear of people and situations.
The term "observational learning" encompasses several closely related concepts: allelomimetic behavior or mimicking where, for example, puppies follow or copy others of their kind; social facilitation where the presence of another dog causes an increase in the intensity of a behavior; and local enhancement which includes pieces of social facilitation, mimicking, and trial-and-error learning, but is different from true observational learning in that the dog actively participates in the behavior in the presence of the other dog and/or other environmental cues. Four necessary conditions for observational learning are: attention, retention, motivation, and production. That is, the dog must pay attention to the dog or person performing the modelled behavior; retain the information gathered about the behavior during the observation; be motivated to reproduce the behavior in a time and place removed from the original; and finally, produce the behavior, or some reasonable facsimile thereof.
A dog learns from interactions it has with its environment. This can be through classical conditioning, where it forms an association between two stimuli; non-associative learning, where its behavior is modified through habituation or sensitisation; and operant conditioning, where it forms an association between an antecedent and its consequence.
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: