Probably not your issue, but I had a lawnmower that when it was hot the coil would quit sending a spark. Have you pulled the plug when it won't run to see if you've got spark? (I guess you did say it fired sporadically when hot)