pregnant not pregnant and babies !!!

Hannah
So my first 2 pregnancies were great wonderful no problem healthy babies the next two pregnancies I miscarried both now i am currently trying again ... I had two term babies and now I can't carry a baby what's going on with my body ?? Has anybody else had this problem ? Then had a healthy baby?