If Command+R is not resolving the flashing folder with a question mark issue, consider creating a bootable macOS installer on another Mac and booting your troubled Mac from it. You can then use Disk Utility or reinstall macOS from there. If this doesn’t work, it might be time to seek professional help to diagnose and address the problem.