Issue with my car Honda civic?

When I drive my car after distance it suddenly stop. I google it they say some it might be

Ignition switch
Ignition switch

Do you know what the reason of this?

I have changed fuel pump, also new battery.

Added (1). Forget to mention it is 2002 Vti

Keep changing random stuff until you strike lucky. It's called repairs roulette and can be very expensive.
Alternately you can take it to a car mechanic who could tell you what was wrong and fix it. Which would probably be cheaper in the long run.

Could be a crank or cam position sensor - try changing one then the other.

You can always take one (or both) back if they don't solve the problem.

I'm not a mechanic, but i had a bad distributor and it was the problem.it usually happened(stopping, well the engine turned off)when i slowed down.

Start with the easy, inexpensive fixes such as changing the distributor cap and rotor, change spark plugs (most likely not the problem), make sure you have a clean the throttle body (plenty of youtube videos on how to do this), change the spark wires. All those repairs that I just named combined will probably cost less than your fuel pump alone.

My Honda Civic was having starting problems, all I had to do was clean the throttle body. So ya, make sure that's clean!

  • My Honda Civic Maintenance Required light has been on for about a week now. What is the issue? My Honda Civic "Maintenance Required" light has been on for about a week now. What is the issue?
  • Honda Civic EP2 Gearbox Issue? My Civic EP2 recently got a reconditioned gearbox and clutch last year. Prior to getting the work done, it would make a sort of hissing noise when the clutch pedal was released. After getting the gearbox and clutch replaced, the noise stopped. Fast Forward a year, the noise has started to come back, and is really starting to bug me. Surely it won't need another gearbox and clutch? I paid around £700 for the work last year, which I though would of sorted the issue.
  • 99 Honda Civic issue? My neighbor has a 99 Honda Civic with 250k he parked it this time last year when he got his new car. He told me he would sell it to me for $50 since it's older and needs a tie rod. Well today we went to start it and when it starts it squeals very loud by where the serpentine belt is. And he said if you don't keep giving it gas it dies. I kind of sounds like one of the pullys are stuck. He said it ran and drives great when you parked it. Any ideas?
  • 2016 Honda Civic phone charging issue? The USB outlet that is used for carplay/androidauto an under the center console is charging my phone very slow. They used to work just fine. They still connect and work but the charging issue is starting to bother me. Is there something I can do or should I take it into the dealership?