My so and I lost our spark

My boyfriend and I, used to have an amazing connection and the sex was great. We decided to start trying for a baby. After several negative tests I gave up and decided to quite keeping track. Our luck changes we found out we were pregnant on September 17th. By September 21st I miscarried. Ever since we’ve been off, we don’t have a sexual life, no communication. And just feels like we’re distant and so different what can I do to fix it. I’ve tried so much but I feel further from him