The spark electrode IS the flame sensor.
When the main flame ignites a milivolt signal is sent back thru spark electrode and wire to control board 'proving' main flame which allows power to gas valve to stay energized.
If spark electrode is dirty or not positioned directly in main flame then signal will not go back to control board.
If signal is being sent then problem is with control board. Unplug connector on board..clean contact are with a pencil eraser and make sure it is making good contact when you plug it back in.
Other possibilities:
Blocked exhaust port....clean
Low gas pressure...should be 11" WC with at least 50% of other gas appliances in service
Defective high tension lead from spark electrode to control board