CAR DIED WHILE DRIVING, WON'T RESTART

Had to be towed home. Replaced ignition switch and cylinder, new battery cables and ends. After checking it out all day, car started randomly as I was looking at the shifting mechanisum then wouldn't start again?