If it is a package unit out side the piloit probably needs cleaned that is what would keep it from lighting. If you take the door off where the gas line goes in you can see the burners and when it is running you should be able to here the sparker sparking. If it is not sparking then you my have a control problem. If it is sparking I would say the piloit assemble needs cleaned