One of the reasons why girls will not like to talk to boys is they sound like jerks. Some boys just find it so cool to talk about themselves when girls do not usually get impressed by this unless the girl already likes the boy from the beginning. You can talk to a girl by knowing what her interests are.
It will be easier if you have some common interests because you will both have something to talk about. Try to show that you are interested in what the girl has to say because this will definitely make her feel special. Talking to someone that you like maybe awkward in the beginning, but it will become more natural as you gain more confidence in speaking.
Girls like it a lot when you can carry a good conversation with them. It will help if you make an effort to know more about what the girl wants. This will help you come up with possible topics that will pique the interest of the girls that you want to talk to.
The more that you can show that you have some knowledge about the available topics, the better it would be. Another thing that you need to work on is your confidence. If you would show that you are confident and comfortable talking to them, they will begin to emulate you and may start liking you as a person. Do not be a pretender because sooner or later, they will see right through you.