dryer cycling but not heating

Hello: my problem I hope. The dryer staryts a flame but only buns for a few seconds then cycles off. The dryer does not heat. I have changed the cycling thermostat but still acting up. Is there something else to ty before replacing the timer?
Thanks for the help
Glen