Your Z97 motherboard is quite old and nothing new will with in it. It uses DDR3 memory, we now use DDR4. It has a socket 1150, we are on socket 1151 with the 9th generation, and 1200 on the 10th (and soon coming 11th) generation processors.
You cannot use the memory, cpu, or motherboard in a new build, but you may be able to use peripheral items such as hard drive, optical drive, power supply (maybe), case, keyboard, and mouse. You will need to buy a new motherboard, cpu, and memory at the very least. However, remember that new motherboards have M.2 NVME connectors, making booting and program loading extremely fast.
You may be able to sell the memory as used, same with the cpu and other parts, but do not expect much.