heating element wont shut off

water supply line sprung a leak. replaced line and everything works but heating will not shut off.Why?