You have no idea why the crankshaft sensor would cause the bike to run rough? Well, the purpose of that sensor is to let the ECU know what position the crankshaft is in so that it can fire the spark plug when each piston gets to top-dead center. Without that sensor, the motor won't run at all. If that sensor is faulty, and the ECU doesn't know where the crank is positioned, it will fire off the plugs at random points causing the timing to be way off. And that, of course, would cause crappy running.
Did you wash it with a hose and bucket? Or a pressure washer? Pressure washers are usually a no-go when washing the bikes. Stick to the hose and bucket. You most likely have water in the connector or the sensor that's shorting it out between the sensor and the ECU. Give it a day or 2 to dry out on it's own and see if the problem goes away. If not, you're going to have to disconnect the sensor and physically dry the contacts out with compressed air or something. If that still doesn't work, then replacing the sensor is the last resort.