I assume your boiler is a baxi 551, 552 or 401 and not one of the newer types.
As breezer says, it will most likely be the thermocouple. I would say you have an 85% chance of it being the thermocouple, 10% chance of it being a restriction to the pilot and a 5% chance of it being the gas valve...