What part of the computer causes lag to happen?

By this i mean parts like ram, cpu, ssd and other parts
12 answers 12