Reboot

Hi, so when I try to boot into my macOS, the lines start showing then they disappear and the computer restarts. I tried installing a clean copy of windows but none of the drives showed up. After that I tried my macos usb again and it does the same thing. I’m not sure if I’m just dumb or what but nothing is working.