What training method do you use? Are you doing complete positive training? Does this puppy get negative training? How old is this puppy?
Practice training him on a long leash with very positive training; make it fun (with treats, praise, lots of praise, etc). Do not get frustrated with him. He’s just a puppy. Puppies are very rebellious. They go through an attitude phase/rebellious phase that could last until they are 1 to 1 ½ years old.