What is NOTAM and why did its failure lead to the grounding of all US flights?

The FAA said it was working to restore a system that alerts pilots to hazards and changes to airport facilities and procedures that had stopped processing updated information.