An engine takes in chemical energy and gives out mechanical energy. So in a way it does a transformation of energy to carry out work.
Similarly an living cell takes in oxygen and gives out carbon dioxide.

A cell can repair itself but an engine cannot.

A cell is a living entity but engine is a non-living entitiy