Dryer will not dry

Dryer heat only comes on sometimes. I pulled the back cover off thinking it was something to do with the ignition. The ignitor glows red but no flame. I removed the gas line believing it was clogged and then reconnected it; the dryer then worked and I thought the problem was solved. Not sure where to go from here, is this a timer issue or something else?