When the rubber flapper is compromised, it allows water to run out of the drain causing the toilet to constantly refill. Replacing it is easy--replacements are available at most hardware stores or home centers. Be sure to take the old one with you to find a correctly matching replacement.