You may need to replace a flapper.
If the water is not going over the overflow tube, the flapper is leaking.
The toilet will continue to fill.
If the water is going over the overflow tube, then the fill valve is not shutting off. Then the fill valve may need repair or replacement.