An engine needs oil to function properly. The oil lubricates the moving parts, preventing them from grinding against each other and causing damage. Oil also helps to cool the engine and prevent the formation of sludge and other deposits.
If an engine runs out of oil, it can cause serious damage. The lack of lubrication can cause the moving parts to overheat and seize up. This can lead to catastrophic engine failure.