is it a B18a or B18B, i think there is one of them that has a crank position sensor on it and it is not in the distributor.
its having trouble knowing where the crank is in reference to the distributor and the cam as well, its needed for proper timing and firing order