Whenever a dog who is previously housebroken starts to have problems, the first thing to do is get her checked by your vet. Have her checked for a UTI.