how to animate a engine

as like as real function of engine i want to animate an car engine