Firstly you need to have some mutual interests to become friends with anyone. For that you have to take initiative to talk. "Men are from mars and women are from Venus" is a good book that explains how and what's the difference between guys and girls mentality and thought process. Girls like to share. Guys like to keep within themselves. Generally Ppl like you if you listen to them not tell your problems in life but hear them and their problems(which they might share later after trusting you). You need not provide solutions but just hear them out. Some girls talk this way and you give emotional support indirectly and they start talking to you over and over again..
So just start a conversation and tell her your hobbies, ask her hobbies, if she's a book reader gift her a book of her liking or pen and music lover some album etc.