Pull a plug right after you crank. Is it wet with fuel? I'm late to this conversation but you should go with the simple stuff. If you can prove spark, prove fuel delivery, verify timing mechanically (TDC), you should have a start. After that, it's pull the valve covers. IMO.
There is some question in my mind if there is sufficient fuel to start. Your description of that suggests weakness to me. The fuel pump should surprise you with the volume of fuel it puts out. Check a plug. Is it wet? IOW, did the spark fail to ignite the fuel? Is it only barely damp? IOW was there not enough fuel to sustain a full explosion?
like i said in post i disconnected the fuel line and filled a 1 liter container in about 5 seconds so i am getting good fuel flow to the engine but if I am getting enough through the injectors is another question I have taken the plugs out after trying to start they smell like fuel but are not wet so I am not sure if enough fuel is being injected to the cylinders and I am not sure how to test for this. this engine has about 250000kms on it the car has about 450000kms on it.
If you don't have any spark and you have good fuel delivery, the spark plugs will be wet. You can smell the fuel on them.
Testing for this you are suggesting that you have an irregular type of cranking. In other words, you crank the engine and it kind of feels like it might want to start but it doesn't. If you have confirmed spark and the plugs are not soaking, stinking wet, you have a fuel delivery problem. Pump, filter, damper, lines, injectors, ecu control. Do you have the service manual?
No i don't have a service manual I think i do have a fuel delivery problem but it is not the fuel pump and the filter for this car is in the tank. It could be the injectors or the ecm but i have already replaced the ecm once already and that is how i got spark to work the car i got the ecm from was in a front end accident so i don't think it was in the wrecking yard due to a engine or running problem. the ecm i am using is the same part# as the original so that is not the problem either.
Here is what I have for a 2010 NA Forester. Consider each point carefully. You don't have to tear it apart again. You may find an answer. At least, you can eliminate some enquiries. It's a pdf file, can't upload a zip file.
@donkpow thank you for the pdf but do you know if the ecm connectors are the same on a 2010 and a 2007 ecm and connector location. I was looking at the pdf and looking at page 15 for testing the fuel injector and ecm.