Why does my 98 Chevy 2500 keep stalling then it won't start?

bad ignition switch. had the same problem until I replaced it.