In your WordPress dashboard.
Go to Settings -> Permalinks.
Select default, click save and reload your website.
There should be no more 404.
If you want other permalink structure, you will need to check that on your server, in your WordPress folder, there should be a .htaccess file.