Like everything else in the body, the heart needs oxygen. It gets oxygen through its own blood vessels.
Those come from the aorta --> coronary arteries.
When has brought oxygen to the heart muscle, the deoxygenated blood goes back the right atrium.
The vessels that bring blood back are called coronary veins.