It could be several things. The spark plug wires may be old and porous, absorbing water and losing conductivity. The distributor cap may leak or be cracked. If it's a diesel, you're warming the fuel and the cylinders because your glow plug isn't working.