It could be a stuck or broken ignition micro-switch or a faulty ignition generator.Either way it needs a Registered gas engineer to fix as it will require dismantling the hob.Approximate cost £60 to £100.

You can pick up a decent hob for around £100 these days so probably not worth repairing it.