Check the task manager to see if anything is running that either shouldn't (software at startup or potentially malware) first. Then I would run something like Malwarebytes and a good antivirus just to be sure.
Honestly I typically do a backup, reformat and reinstall of windows every 3 years or so just because slowness sorta just happens over a computers life from using it.