96 Honda TRX starting problem

Hello all,

I have a ’96 honda trx 300 2wd. When I got the four wheeler the electric start would work but the engine always had a hard time cranking. I replaced the boot for the spark plug and it fixed it. Whenever it would crank though, always had a problem with it idling rough. Took the carb apart and cleaned it and it worked but would still idle rough and I would have to adjust the throttle linkage. Eventually, the electric start quit working and the engine no longer cranks when I use the kick start. Before this though whenever I would ride for a little and the engine got warm it would eventually just turn off and would not crank for awhile until it cooled off. Spark plug has a great spark and I recently replaced the solenoid. Hooked the starter up to the car battery and works fine but the engine will not crank still. When I click the start button (and the engine kill switch is on run) the solenoid clicks but nothing from the starter. Any ideas?