Weird. I don't know what you mean by "they stop working all together"
It isn't a good idea to spray water on hot discs, interesting that they got that hot...could have warped them, I suppose...
You could have a vacuum issue, you might have a failing master cylinder as well...If you are really losing brakes altogether, and the master is dying, you could have an unsafe situation on your hands in short order. You want to make sure this is not the case, because when masters die, you have zero brakes...