If you have checked the parcel shelf is in lower position, the easy access handles are correctly located on each side (sensor is on left) and the micro switches are working then get an OBD2 code reader for a Mini and see what the roof module brings up, there should be a code. Rare for the actual op switch to fail. There are also hal sensors under the mid roof cover where the sunroof motor and cables are hidden.