Machine for driving air or liquid