The fill valve controls water entering the tank after a flush. When it fails, you get a toilet that runs constantly, cycles on and off every few minutes, takes forever to refill, or makes a high-pitched whine. Replacing it is one of the easiest plumbing repairs -- no special skills, one wrench, 15 minutes. The Fluidmaster 400A ($8-12) is the universal standard and fits nearly every toilet made in the last 50 years.