There might be a connection issue between the APM and the IMU shield. Check the pins with a meter to make sure they all have a good connection. Also try flashing the firmware and erasing the flash (see the wiki). If those don't get you anywhere the board might be toast. Did anything happen to it, too high of input voltage, dropped, get wet?