Why Won't My Ford Focus 2010 Diesel Automatic move?

I have brought a ford focus 2010 Diesel Automatic from salvage auction, the vehicle had sustained damage to the front end especially the front passenger side, the drive shift was broke so replaced that however the vehicle still won't move. The gears change on the gear box without a problem but still does not move and when you put the gear in D the engine revs very loud for some reason but still no movement.

If anyone can help with what the fault maybe please let me know.

If the drive shaft was broken it could have broken the main drive shaft in the gear box, but you will have to strip out the gear box to sort out the problem.

It's been crashed, that's the problem.
The gearbox has likely suffered some kind of internal damage as a result of the crash.