Consider doing some preliminary troubleshooting to determine if your issue is related to hardware. You can try to determine if the cause of your issue is related to hardware or software by following Isolating issues in Mac OS X. Apple Diagnostics can help determine which hardware component may be causing the issue.