Plain-English answer
A sump pump is basement flood defense.
Water collects in a sump basin. When the water rises, a float switch or level control starts the pump. The pump sends water through a discharge pipe away from the building.
A sump pump system succeeds only if the pump starts, water leaves, water does not return, and the discharge route stays open.