Crankshaft position sensor would cause no spark, no fuel injector pulses, and no fuel pump, but the starter will crank the engine just fine. This has nothing to do with the battery or generator.
When you list the battery and generator, I'm thinking the starting system is dead.
"I've replaced alternator already it worked fine one day and next day nothjng". "Nothing" doesn't tell me anything, hence my confusion. Ya gotta list specific symptoms, observations, or clues to keep me on track.
Since you've already worked your way to the crankshaft position sensor, I put these diagrams together for "Powertrain Management". See how far these get you. If they are too small to read, first try to copy one and paste it into a typing program such as MS Word where they can be expanded, otherwise let me know which ones you need and I'll cut them into pieces that I can expand for you.
Images (Click to make bigger)
Sunday, June 11th, 2023 AT 10:29 AM