What is a motherboard?
In IT, the motherboard is the main circuit board that links all components (like the CPU, GPU etc.) all plug into the motherboard and use the motherboard to communicate with one another via traces. The motherboard will have connectors for the power supply, fan headers, USB ports, audio ports, ethernet, WiFi (only on some motherboards) and many other things.
CPU sockets & DIMM slots
The CPU has an incredibly important role to play on the motherboard and its due to this very reason that they usually have their own socket and different types of sockets that are usually different generations (improved/better). For AMD you have sockets like AM3, AM4, AM5 and for Intel you have sockets like LGA 7529, LGA 1851 etc. RAM, also has different sockets, called 'DIMM slots'. DIMM stands for Dual In-Line Memory Module slots, these can change depending on what generation of DDR the RAM stick is.