Plumbing Problems in the UK? Ask a Plumber Now.
Is it continually sparking when it does this?
Does it continue to spark even when lit?
The ignition lead could be loose on the PCB, the spark will jump across a gap but cannot pass the mV back to the PCB to tell it that it's lit.
Check there first then check to see if it is still sparking once lit, you could try your ear against the case to see if it is still ticking