I had the same symptoms about a month ago. After a lot of head scratching, I found that the harness going to the cam position sensor had corosion in it. Cleaned up the contacts and haven't had a problem since. I would check all of the harnesses in the engine compartment.