If the dryer gets hot inside, but the clothes don't get dry, that would be a clogged vent. If the dryer is not getting hot inside, then you are looking at the igniter or gas supply.
The dryer not being level would cause it to never work, rather than being intermittent, I would think (if that...