Recovering your contacts and pictures depends entirely on the damage your device suffers. If it's a non-recoverable error then the files among are lost forever. Although you can not basically do anything about the error you may try to visit the service technician who can probably solve this issue. My advice is to leave it as it is and visit specialized support available in your area. Regarding the software part, there is no tool to try and fix it using simple steps.