Just so you know, a puppy is never completely housetrained until they are 6 months old. For some breeds, even later. This means that though you may be making tremendous progress housetraining, there will be "mistakes". Sometimes for reasons you can't figure out! Don't fret about it. Stay focused on the progress you are making. Your confidence in the techniques you are using to house train your puppy will ensure your success.
You should always accompany your puppy outside for potty breaks. You’re there not only to ensure that he actually goes, you’re also there to reward your puppy with a treat for going in the proper spot. Wait until your puppy finishes eliminating and immediately give him a tasty reward for a job well done. If you wait until you get back in the house, your puppy won’t make the connection between his elimination and the reward.
There is nothing inherently wrong with telling your dog “no,” except that it doesn’t give him enough information. Instead of telling your dog “no,” tell him what you want him to do. Dogs don’t generalize well, so if your dog jumps up on someone to say hello and you say no, he may jump higher or he may jump to the left side instead of the right. A better alternative would be to ask him to “sit.” Tell him what you want him to do in order to avoid confusion.
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.

Once he seemingly has this idea down, move the string of bells to the left or the right of your dog and see if he moves to go and hit them with his nose; if he does click and treat! Next try moving the bells above his head and then closer to the floor. If he is chasing them with his nose in an attempt to ring them, then he understands what you want!
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: