If the pilot light or burners lit for a few seconds then went out, the flame sensor may just be dirty, if cleaning that does not help, then the printed circuit board is the next most probably suspect. We can do tests on all that.
Please attach a well focused, close up photo of the wiring diagram glued inside the service panel, the picture needs to betaken from straight on, in very good light.
You can use the paper clip- icon at the right end of the tool bar at the top of this dialog box to attach it here. ,Include a picture of the thermostat wire connections to the printed circuit board in the same area.
If you have an error code showing, tell me what the code read out is on the wiring diagram or a sticker next to the diagram please.
If there is no paper clip-icon, look for the '+attach files'link at left of your send button.
I can mark it up with trouble shooting instructions.
You will need a multi meter ($30 at a hardware store) and some experience working with appliances, let me know a lot about your skill sets in those regards.