The first thing I would do is make sure that the shifter goes through its full range of motion (from 2H to 4L and back again). I've heard of similar issues where people have swapped in a transfer from a different platform (made for a different floor pan) or mixed and matched the linkage and the lockout plate. Either the shifter hits the floor, or the lockout stops the shifter in the wrong place. Given yours is all WD21 parts, and worked previously, I would guess something didn't go back together quite right (assuming you had that linkage apart?), so you're shifting from neutral to 4L when it looks like you're shifting from 2H to 4H.
I can take a picture of the linkage on mine for reference if that would help.
I've also heard of people having the console apart, moving the shifter to get it out of the way, and being shocked to find no drive afterwards--because they forgot they put it in neutral. I may have done this myself at some point.
If the transfer is in neutral, putting the auto trans in park (or leaving a manual in gear in gear) will not hold the truck. This is both a way to rule out the transmission, and something to watch out for if you're working on uneven ground--don't run yourself over with your own truck.
I am of course assuming that your rear driveshaft isn't sitting in the corner laughing at you.