If she is spayed and the "housebreaking problems" were leaking urine, she may have spay incontinence. This is easily fixed with a hormone pill that costs approx. $0.75-1.50/week (depending on the dosage needed - but it is generally inexpensive).
Leaving your dog outside has risked her health and will now likely result in a much larger vet bill. She sounds quite ill - please see a vet ASAP.
Please ensure she remains hydrated. If she doesn't want to drink, try giving her ice cubes. If she is off her food, try tempting her with a high quality wet food (Wellness, Innova EVO, Nature's Variety) or some plain cooked chicken and rice. And please bring her back inside where she will be more comfortable!
Chase (Friendly Resident Wigglebum) - Border Collie/Lab/Shepherd X
Kailey (Misunderstood Gentle Beauty) - GSD & foster failure #1
Rupert (Gold-Medal Winner of the 3 a.m. Kitty Destruction Olympics
Heidi - RIP my sweet baby girl