Can you access functions.php through FTP or through login from your hosting?
For example, I am using GoDaddy. I can log into my GoDaddy account and from there access server and functions.php.
If you cannot get it to work, I suggest you contact your hosting provider. They usually keep backup of files and can roll back the file to previous versions.