If its a puppy you can use puppy pads or paper training. Place the pad or paper where you want the puppy to pee or poop. The. Make a schedule of taking him for pee or poop in that area everyday like after playing, after having food, early in the morning and before going to sleep.
Praise him a lot or treat him when he does use the puppy pad. It will definitely take some time and effort to fully potty train a puppy but eventually it will happen. All the best.