Composite and Amalgam
Composite is the default here. It matches the tooth, bonds to it so the preparation can be more conservative, and needs no undercuts to stay in place.
Amalgam, the silver material many people have from childhood, is hard-wearing and was the standard for decades. If you have sound amalgam fillings, there is generally no reason to replace them. Doing so removes more tooth for no clinical gain. When one cracks, leaks or has decay under it, that is the moment to change material. There is more on the metal-free dentistry page.