It sounds like you aren't getting gas.
Make sure that the fuel line is delivering fuel.
Disconnect the fuel line, get a safe container, no smoking, turn engine over and ensure gas flow.
Gary
Question edited for clarity, and add maker, toss in some CAPS.
Question moved to model category.
Mating surfaces not flat and true.
Reinstalled without a new gasket.
Under torqued or unevenly torqued.
No gasket goo used.
https://www.google.com/search?q=2001+Yamaha+YZ250F+valve+cover+gasket+leak
..