Yeah, confidence / personality is a very big thing, a small bit of charm counts too. But I think there's more to it than that.
(Speaking from experience I was once someone who was once hopeless with girls)
-work on your social skills (remember, women love to yammer on about themselves so if you're a total social plank just try listening and occasionally giving advice)
DO NOT listen to anyone here who posts on about the "alpha male/treat her like the bitch she is" mentality, this is only going to wind you up with a fuckrag, and will turn you into an even worse loser than you already are. It doesn't take a rocket scientist to realise that NORMAL WOMEN like to be TREATED RIGHT. Girls who like assholes are either classic victims, or just fuckrags.
Trust me, I know this, I've been treating my girlfriend (now fiancée) right for the past 6 years, and things only go from good to better. And every other girl I've been with I've treated well, and have been treated well in return.