Try spraying some starting fluid into your intake. If it makes your car start and run your problem is probably fuel related. If the starter fluid has no effect your problem is probably spark related but it still could be other things like a clogged cat or compression. Was your code a P0300? Do you smell gas under the hood? If so, you may have leaking fuel pressure regulator.