the tank is overflowing for a reason the rubber washer inside the ballcock valve could perished.
the cotter pin could have corroded in the hole causing the ball to stick
the ball arm could have fell off
(you WILL need to look inside the tank to see whats wrong)
you will either need a replacement rubber washer or a complete shuttle assembly, a new cotter pin (copper).The water will need to be isolated to do the repair use the incoming stopcock to isolate.
wirecutterman
May 2009