Q: After flushing the toilet bowl overflows and water pump does not shut off
A: Your description suggests there is an issue with the solenoid valve that is connected into your water system for the flush water.
A replacement solenoid should resolve this.