One of the best solutions to control spam on WordPress websites is to use the Akismet plugin from Automattic, the creator of WordPress. Akismet uses various built-in features and settings to help filter, destroy, and prevent spam emails. If you use JetPack's comment module, then you are lucky - all comments will automatically pass through Akismet's filters.
Don't want to use plugins to manage your website? You can enable stricter comment rules through the dashboard under "Settings">"Discussions". By enabling core WordPress options that only allow registered/logged in users to post comments and require manual approval of all comments, you can prevent spam, but this is time-consuming and may discourage users from posting comments.