There are plenty of reasons for this. Please be more specific about what you were doing before it turned off. My guess (one of the most common reasons) is overheating can happen when you block or something blocks the exhaust fan of your laptop in this situation you would take out your battery and wait for sometime (4 hours-20hrs).