I have a 2006 toyota matrix 1.8l frd today I was driving down the turnpike and all of the sudden my car started losing power RPMs dropped the engine started ticking I pulled over immediately I popped the hood I noticed immediately that the battery had slid over in the tray and pinched the engine coolant line. Which caused the coolant line going to the underside of the engine block to pop off leaking all of the coolant there was no noise when it was idling I immediately shut the engine off. I added antifreeze because it was about 26 degrees outside at this point. I reattached the coolant hose and now it will not start it cranks but it won't start will not fire. What is the most likely issue that is causing it not to start. I should also add that the check engine light is flashing when it's in the accessory on position
You should scan the car for codes and go from there.
This video should help: