Can anyone help me with transfering data to a new pc from an old one?

I have an HP Pro 3500 series MT pc and I bought an HP ENVY a couple of years ago and I haven’t hooked the new one up because I don’t know how to transfer the data. I would appreciate if someone could send me in the right direction? TIA