it could be bad fuel sparki, coil, leads, or blocked fuel line, filter or injector since it happed in the rain, water could of got into ur engine bay causing a short some where. happed to me one rainy night after work drove home and my car had the exact same prob except it had a missfire, next day it started up fine.