Iv'e pulled the cel p0390 from my car,

P0390 Camshaft Position Sensor B Circuit (Bank 2)?

Iv'e replaced the sparks with NGK7's still had the original sti sparks were fine... & replaced the cam sensor? still giving me a cel? Any ideas?