There are many underlying causes for hardware failure from impact damage and electrical spikes, to lack of maintenance, overheating and even the accumulation of dust which often leads to sector failure. Your computer cannot write or read data from a sector that has failed, and any data already written to that sector is lost. An issue which is difficult and very expensive to repair.