This article gives nice overview of the process.
A simple syntax error in functions.php can crash your entire site. There may not be anything wrong with the code except a missing semi-colon or something. To get a clue to the cause of the crash, define WP_DEBUG as true
in wp-config.php.