I helped my friend put a new motor into his 1992 Civic (sadly still a D15). It did the same thing. For TWO DAYS we tried to figure it out.
Then my friend Chris realizes THERE'S NO GAS IN THE TANK. I joke you not. We drained the tank before hand and removed all the lines. I felt so stupid I wanted to kill myself. :wtc: