It varies between different servers, which is why it is difficult to give a definite answer here. For example, for powerful servers, the CPU will probably cost the most. For servers with 4c processors and not much memory, the motherboard often sets you back the most. You will find that the memory could well be the most expensive component for servers with large SSD or NVMe storage.