Your details are slightly vague.
I assume by "it only swings" you saying its cranking over but not starting.
Best bet is trial by elimination. Start with the basics, Spark and fuel. I agree with Dave though, inspect the CPS as it could be throwing both spark and fuel off.
A nice way to rule if your fuel pump gave up on you is get some gas in a squirt bottle and spray it in the throttle body, if your car runs for a second you have fuel issues.