Either of those problems could cause the engine to stall, but the fact that it has been sitting for over 3 months could mean the carb needs to be cleaned, too. I would fix the keyswitch and drain out the old gas and put new in and go from there. If neither of those are the problem, I would clean the carb.