Questions about Miscarriage

Hil

I have a couple questions about what comes after a miscarriage:

1) When can you start having sex again?

2) When can/should you start trying for a baby?

3) If I had endometriosis and PCOS, will my miscarriage gotten rid of all that?

I had miscarriage on 01/31, and I’m just trying to figure out the next steps.