If pilot light is not staying on, then cause COULD be the damaged sensor. This will stop supply of gas to the flame on the pilot light, if there is no flame detected (current to sensor), to stop build up of gas. If no plilot light then the boiler will not ignite.
change sensor would be best bet.
Just a thought as I'm no expert.
richard
September 2008