A black box on an aircraft consists of two systems: a flight data recorder and a cockpit voice recorder. They function like a computer hard drive or memory card, storing information about the plane's activities and cockpit conversations. These devices are designed to withstand extreme conditions and emit a signal to be located after an accident. They are crucial for investigating aviation accidents and improving future flight safety.