I'm really just posting here to get some feedback from other people. I'm feeling pretty fragile at the moment so it would be nice if you could bear that in mind if you reply.Thanks 
Long story short - I had an emotionally/physically abusive upbringing; there was a lack of emotional warmth from parents; I spent a lot of time very fearful; even now, I'm scared of making mistakes, scared of getting things wrong, scared of being mocked, ridiculed and humiliated; I was told I wasn't good enough and no one would ever love me.
I've had 2 proper relationships - one was about 3 years long - abusive e.g. tried pushing me down the stairs when pregnant; went to punch me when pregnant, I moved, he hit the wall and disclocated his shoulder.
Moved back home as I had nowhere else to go, mother made me homeless when I was in hospital having my child and I ended up in a mother and baby care home for nearly a year.
I had a friend who became my 'Knight in Shining Armour' - he 'rescued' me. We both knew we weren't together for love, and he came to resent me for it, but he was, and still is, a good dad to my son (his stepson). We married, had another child and split up after 12 years together when he met someone who he loved and who loved him.
I have done a lot of work on myself over the past few years since separating. On paper, I think look ok but I just feel so inadequate, so worthless and completely unloveable.
I met a man a year ago whilst at an event in my local town. We became friends and got to know each other over a few months. We started seeing each other and were together for about 7 months. He ended it last week.
I'm just utterly heartbroken. Not specifically at having lost him, although that really hurts - but I was ok before him and I'll be ok without him - but also/mainly because I've never had a successful relationship; I have/had never been loved. I felt there was potential with this man and so did he but, ultimately, he felt that I was witholding and that I withdrew from him if I had things going on/on my mind. He wanted to be there for me and to love me but I wouldn't let him. He said I kept him at a distance. He said I didn't 'let him in' and he said it was hurting him too much being with me.
I've had the same from friends. I find it difficult to make/progress/develop all sorts of relationships - with neighbours/colleagues/friends because I worry that if they get too close they'll get to know the real version of me that my parents saw. I'm genuine - but I don't assume that people like me and so I don't 'impose' on them or their lives in any way.
And he was right. I do withdraw, I do withhold, I didn't allow him to love me. I could feel myself doing it but I couldn't stop it. I don't know what to do. I don't know how to be loved. It feels foolish and scary and arrogant.
I miss him so much. But he did the right thing in ending it because I couldn't give him what he needed/wanted.
But I'm just heartbroken now because I've lost someone I genuinely cared about and who I actually believed cared about me. I trusted him, I allowed myself to be more vulnerable with him than I ever have with anyone before, we did romantic things and I've never been romantic! But it still wasn't enough. He was offering me the kind of relationship I want but I didn't know how to do it.