/6 sitting up for several years what to do

I just brought home a car and it has been sitting up for over twenty years what should I do to check out the /6 to see if it is still good to run or should I just pull the motor and replace it?