Dryer sometimes wont heat

my dryer is 4 years old and works most of the time but sometimes there is no heat

check the cord connection and the power outlet for 220-240v

it is a gas dryer

When there is no heat, pull off the square plastic cap on the front panel and look for a flame and descibe it.