I would save your theme directory in a safe place and
totally re-install WordPress from square one.
If your blog database is important, you can save that also.
The only place where you should edit or customize is
your theme directory ... no other places.
Also make sure .htaccess has been created correctly.