None of these analogies are entirely wrong, they're just incomplete.
Humans are similar to machines for example in that our bodies convert energy to do work through a series of pumps and pipes and sensors and actuators. Life is not animated by some magic force but instead operates under the same physical laws that machines use to function.