I figure you have a p0340 which is camshaft sensor signal. You need to verify the camshafts are still turning and that you don't have a broken timing belt. This is a interferance motor so if timing belt has broke there is a very good possibiluity of internal engine damage. If the belt is ok I have attached the diag procedure for the p0340.
glad I could be of help let me know if you need anything else.