Is it a diesel? Check that you have power to the stop solenoid with ign. on and hand brake released. If not, it seems you have lost an earth somewhere, and the hand brake switch is providing the earth path.
Check the engine earth straps.
                
 Mr. Toad
                
 August 2008