Trying and Trying

I have been with my hubby for 8 years now. In early 2016 i got pregnant, it was ectopic so i had to have surgery to get it removed. And then in early 2017 i got pregnant again. That time everything was going smooth everything looked great, and then we go for our 10 week appointment and we are told that it’s making its way out there’s no longer a heartbeat, nothing and then about a week or two it makes it’s way out. And since then I’ve not gotten pregnant. Sex when I’m suppose to, prenatals and everything and still nothing. Now i don’t know if i can get pregnant or if it’s going to happen for us. And if i do will it stick. I just don’t know what else to do at this point.