A toilet is two simple machines sharing one body. In the tank above: a fill valve lets water in, a float rises with the water and shuts it off at the right level, and a rubber flapper seals the doorway down to the bowl.
Press the handle and a chain lifts the flapper — tank water rushes down, the bowl empties, and the flapper flops back onto its seat while the tank refills for next time.
A toilet that "runs" every few minutes is almost always a tired flapper leaking slowly — tank water seeps into the bowl, the float drops, the fill valve tops it up, forever. One small rubber part, one classic diagnosis.