Pilot light works... valve clicks when thermostat moved to heat but no flame? Have you checked the thermo coupler?