Nice find for $500, I would have bought it myself as a parts vehicle and saved hundreds on parts I need for my truck.
Did you get the 4wd working? if you get the drive shaft in and it still doesn't work, check/replace the "Transfer Case Control Module" which is under the dash, you can get one...