Igniter Glows, But Oven Won't Light

My oven won’t light, someone said it could be the oven safety valve. Also the wires that plug into the oven safety valve may need replacing. Could someone please help me.