I have a 2011 825i that stopped running while going down the road. I took it to the dealer and the code reader showed an issue with the camshaft position sensor. I put a new sensor in it and still no luck. Has anyone had a similar issue and can advise me what to check next?

I followed the tech manual and I have 12 volts to one of the wires, and 5 volts to the other. The third wire is supposed to have continuity between it and ground. I am getting 5 ohms. It says next to check continuity between that wire and the port on the ECU. Where is the ECU and these pins located? Any advice or direction would be greatly appreciated.