You've not done anything wrong, and there are things you need to know and understand about your upbringing and yourself. There are many reasons parents don't love a child, it's more common than you might think. Some of them might be that you remind them of themselves when young, before life took over and changed them. You might look like one of their parents, or have certain ways of talking or doing things that remind of that parent that they didn't get along with, or did not like.
They might be unable to love their child, because they grew up un-cared for themselves. So what they saw and experienced seemed normal to them. Perhaps females or males were treated differently in their families and that became their method in raising children. There are so many reasons why parents treat their children in such a way, and they damage them from the very beginning. You're lucky you survived, but often unknowingly they pick the strongest child as their scapegoat. The one who knows early on, that there is something 'not quite right' with the family.
Scapegoating is not unusual in fragmented families, where one or both parents have difficulties that they'll never understand about themselves. But the one thing you have to work towards and understand is that it could have been anyone, it was not about you, although it feels like that. Your treatment by your family, had to do with them, what they saw, what they wanted, how they perceived you. It isn't who you are, it's who they think you are and it says nothing about you as a real person. They don't really know you, and they never understood you, and that was their mistake, their error of judgement, not yours.
You are going to need to do things for yourself, (as if you haven't done that all along) to discover that lost child, the one inside that's hurting and alone. You'll need to bring that lost child out into the light, in whatever way you can. Then you'll become a loving parent to that child who is really you from long ago, the way all children should be loved. It's a long journey and your faith will help.
http://www.vachss.com/av_dispatches/disp_9408_a.html