Please HELP 86 Honda Fourtrax 250

Looking for some help. I have an 86 Fourtrax 250, and when it runs, it runs perfect. When it won’t, no spark, nothing. Currently, no spark, and can’t get to run. I have replaced Stator, Coil, and CDI. Any other suggestions? Any help would be much appreciated!! Also, there is no rhyme or reason why it won’t run. What I mean is that it’s not a problem that it only quits when it’s hot, or something like that. It may be stone cold and not run for days, and nothing. Come back 8 hours later, and first cylinder up, and she’s purring. And then all of a sudden, riding fine, and just quits.