To be a good listener, you have to genuinely care about the other person.
The other person will want to talk because you genuinely care about them, empathize and sympathize. it may take a while for them to break down their wall, but they eventually will, because they can see you genuinely care and are interested.
You are genuinely upset if they have had a bad experience, or are in a bad way and so on.
Because of this they will be able to see your reaction to what you are saying, as you are experiencing what they are telling you.
As a result you don’t need to say much, they can see everything from your reaction.
This means they can see what is going on and what they need to do, because they can see it from how you are experiencing it.
People will be willing to talk because you genuinely care and are interested in them. Their thoughts, feelings and how they are.