Hello and thank you for using Just answer! I'm Billy and i will assist you with this. Feel free to ask if further info is needed.
First i would check the timing marks (since work was done there), make sure the marks are on place....and then rotate manually two turns.....make sure these get back at same place.......and correct as necessary.
If that is not the problem......marks being spot on, and given that the problem is intermittent.......the most likely cause would be some loose wiring....loose connector....or dirt build up on connector....
I will include the checking details for this code, so you can check accordingly....and make sure the connectors (all related, mentioned in details) are good, clean and tight).....and makse sure the wires are good (continuity), between the distributor and the engine control module...
click here for details
Thank you for trusting JA and myself.......get back to me if further info is needed.....positive feedback and bonuses appreciated...http://www.justanswer.com/car/expert-billy/
The distributor plug pic you sent does not look like what I have.... Mine is flat straight across. Timing marks are all spot on.... However that being said. Could the balance shaft be causing this? When I replaced the belts I did not use the locking pin procedure to lock the balance shaft in place..... The way I understood it was that this procedure is used for earlier engines that did not have the marks on the balance shaft. Mine did. I lined them all up properly before taking the belts off.
The balance shaft would cause issues......(it should not cause this fault code)....but still, it would cause issues...and it should be locked while removing and installing the belt......
And since the info seems to be off (you have another engine)....then i will opt out, relist the question so other experts take a look........but i would still recommend that you check the wiring thoroughly......Good luck!