Arduino code not uploading

I am brand new to owning an arduino and I can’t seem to get my programs to upload. I am following the stater kit project book and trying to upload the spaceship interface. Every time I go to load the program the the uploading bar will fill up green and sit there for around ten minutes and it will give me an error occurred while loading the sketch. Any ideas on how to fix this?

I am going to ask the obvious questions :

Is the board recognised the board when you plug it in?
Is a COM port allocated when you plug in the board ?
If so, then have you got the COM port selected in the IDE ?
Have you got the correct board selected in the IDE ?

Yes I loaded the blink program that you start with loading but after that I couldn’t get any others to load.

So, to be clear, the Blink sketch has loaded correctly at least once. Will it load again ?

Please post the full error message that you get when uploading a sketch. Copy them using the "Copy error message" button in the IDE

Yes it loaded once and its been blinking since I loaded it but I cant do anything to get it to stop

Arduino: 1.8.15 (Windows 10), Board: "Arduino Uno"

Sketch uses 444 bytes (1%) of program storage space. Maximum is 32256 bytes.

Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.

An error occurred while uploading the sketch

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Close the serial output window (if it is open), disconnect the arduino, reboot your pc and try again. Uno's are very strong devices, you are not likely to break them.
Then as @UKHeliBob says, try to load blink again.
What for sure you can do, is look at the hardware manager of your computer, under the com ports, if you connect your board, you should see a com port appear and go away once you disconnect. This is a very important experiment as it has nothing to do with the IDE and this way you can narrow down your search pad.

I don’t see a port appearing and going away when I plug it in and disconnect it.

The first step is to check what happens in Windows device manager; if it is not correctly recognised there, it will never show in the IDE.

Sometimes the blue USB3.0 ports fail to recognize the device, you might want to try and USB2.0 port (the black ones).