1.. the thermocouple has packed in
2.. the pilot is small and needs cleaning
3.. the gas valve has packed in
These are the most probable causes for pilot failure you didn't give enough information about the boiler some have limit stats built in and they can fail too
Darrengas (heating engineer), June 2009