Religion

I've always been into my religion and have always believed in God. We lost our baby at 24 weeks a few months ago and since then I just have zero desire to do anything that has to do with religion and am struggling to believe in a higher power. Has anyone felt the same way or does anyone feel that way? I feel guilty for abandoning something I've believed in for so long, but I'm so angry. I prayed and prayed from before I even got pregnant and I'm a good person... I don't understand. I know bad things happen to good people all the time, but I'm just struggling :/ Any advice on how to still believe when something so terrible has happened? What did you ladies do to keep the faith? And if you lost your faith as well, how do you feel now?