Welcome to the forum.
If you've got a D40, you can engage 4WD while you're driving without any problem. You need to stop the vehicle, put it in neural with your foot on the brake to engage 4LO.
An ABS fault will prevent you from getting into 4WD, but your ABS light should be on if that's the case.