Blocked hex or faulty spark generator. I wouldn’t rule out the spark gen unless it’s new.
If the gas valve is opening and the spark is correct as @gas112 says condensate can stop it, but pull the pipe off the trap and that can be ruled out.
After that as @ianmcd says blocked hex. But in all...