I had a friend who went through this problem. She was trying to get pregnant with her husband and went through 9 miscarriages before they had their second child.
The doctor said it will take at least 3 months for your body to recover from it.
Try to relax. There isn't anything wrong with you or your body. It will happen when it is meant to happen. Give yourself time to recover from your loss as well as the trauma your body has gone through.