Turned ignition on, car engine seemed to race but then off. on 2001 Ford Focus

Turned ignition on, car seemed to start but made a brief rump sound as if engine was racing, but no sooner I tried to put it on drive, engine turned off. What can it be and how much will repair cost?

Asked by for the 2001 Ford Focus
It could be many things, unfortunately and without experiencing the problem first hand or being able to do some basic diagnostic tests its hard to say. Have you tried to restart the engine, It could be anything from a loss or ignition or fuel to a mechanical issue but it is impossible to guess without knowing more details.
Thanks for your time in answering my question. Mechanic changed Idle control valve assembly, however, he informed me that this might be first step...first step to what? and what is the difference between an idle control valve and an idle air control valve? If I may, what are the usual charges for this work and parts? Thank you!