The first thing to do is to check the equipment providing the heading source is on. Most of the time it will be an autopilot with a control head showing the heading, If the device is on the next thing to check is communications between the equipment,