Help with water damage

So my board got caught out in the rain and now the motor just sputters with the VESC flashing red. On visual inspection there doesn’t seem to be any damage to the VESC or motor and I’m wondering how to diagnose the issue. Any help would be greatly appreciated.