Why am I not deserving enough to be a mom?

I don't know what I have done wrong. I have been doing everything I can for over 2 years and the 1 pregnancy I had was taken from me way too soon. Being a mom is all I have ever wanted. It's who I am. I have so much love to give, but there is an emptiness in my heart that nothing else can fill. Why don't I deserve to have a baby? What have I done wrong? Would I not be a good mom? I can't take this anymore.