Not usually broken, just not working until dried out. However, that can take a long time once water gets into an almost closed space like a controller box or twistgrip throttle housing, and water getting into wiring connectors can cause corrosion.
Not a big headache though, most modern e-bikes...