Sounds like flame failure sensor has packed up - when you turn on, this has to heat up and then it will open a valve to let the gas flow fully - the idea being that if tha gas went out, this sensor would cool down and turn off the gas. Shouldn't be expensive or difficult to fix - if you're handy you could probably do it yourself.
Chris
January 2005