This gets covered loads: I know because it happened to my car.
If it cuts out in a very dramatic way like the power has suddenly been cut then most likely it will be the crank position sensor located under the engine mount near the oil filtre. The wires break down over time.
If it dies in a lumpy, gradual way then it's likely to need the throttle body cleaning out which is very easy to do yourself.
Have a search on 'cutting out' as there's pages and pages of it!
