The problem will more than likely be down to toothpaste residue around the power switch. Give it a good clean with hot water around the switch, dry it off and see if this helps. Also clean out the socket that takes the brush head in a similar manner.
Rupert
December 2019