Who should answer when a public service fails?

From the UKJP’s principles, 4. Accountability: every public body should have a named person responsible for its results, and consequences when it fails.

Think of a recent public failure. Who was responsible, and what happened to them? What should have happened?

Any position may be argued here, including that the question is framed wrongly.