If the pilot flame is good enough then you need to replace the "Limit stat" a wire that connects to the gas valve and finishes near the top of the boiler on top of a pipe,its a safety feature that prevents the boiler over heating.the usual suspect costs about 15-20 pounds to buy.If after that you have no joy im afraid its replace the gas valve.most likely the limit stat 99%.
rob, September 2006