Check the safety switch under the seat and the PTO safety. Since the glow plugs don't come sometimes, check the ignition switch too.
I've checked all of the switches and the only one that isn't working is the brake switch. Should this keep the glow plugs from functioning? I don't think so...