relationship

so me and this guy my ex was talking for almost two Years I got pregnant but lost the baby ,I loved him so much even though I did harmful things I want him back but he don't wanna be with me is their any thing I can do to get em back