Blackberry Q5 no compass/ magnetometer

Water damaged, but only function not working is compass with Virtual Expert sensor testing saying magnetometer not available. Also how do you get to the Engineering Screen? I can’t input the code I obtain on the keyboard successfully.