Why does your 1991 Honda civic lx crank over and starts for a few seconds and dies out could it be fuel filter or battery?

It was a worn out ignition switch on my 91 Civic