Engine dies when I step on the gas

Buddy with a boat twin engines had the exact problem . Water condensation inside distributor cap, once it warmed up to full temp it as ok.