Trying to get pregnant

So I been trying for almost 3 years I had a few scares and I don’t know what to do to get pregnant any advice ?