If you can, turn off the appliance and then remove the grate and burner cap. Reconnection of wires that may have come loose is important. You will probably need a new igniter or some work on your gas connection if that doesn't solve the problem.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.