sounds like you have a vokera option or compact
am i right?
most likely to be ignition control board if cutting out intermittantly
you need to try & give as much information as possible
to help with an accurate diagnosis
otherwise i have to rely on my crystal ball
make
model
if problem affects DHW or CH or BOTH
manwithnoname
May 2011