It's not uncommon for a first time mother to have a rough birthing. It sounds like she had a very hard time, and was likely in extreme pain. There are many things that could have gone wrong.

Give her a long time to recover from the physcial trauma, change her bedding to get rid of afterbirth/fluids and give her an optimum diet in a low stress environment. Keep her healthy and let her recoup before you try to breed her again.

Good luck next time around.