Both commands sound like they do the same thing but they are used in very different ways
Stops script execution for a specified amount of time in seconds e.g
sleep 30 will stop the script for 30 seconds before continuing.
Wait command pauses the script just like sleep but it waits for a process to complete regardless if it was success or failure e.g
wait 123456 will wait for the process 123456 (PID).