I'm going by your forum info that says the car is a '97 328 which is an M52B28 the same as my '96 328. This graphic shows the cam position sensor and ping sensors for both our cars, and there's definitely a connector for each if the wiring in you car is per factory. The connectors on these sensors slip into the sheet metal holder, and the connectors from the wiring harness disconnect from them.
'96 328iC "Marie"
R.I.P 14 November 2013