If your hard drive failed and you do not have a backup of it, the data is lost unless you use professional hard drive restore service. Sorry about that. If your hard drive is not the cause of the failure, you can put it into the new computer and take the files out.