Thanks for your feedback everyone. Here are the answers to your questions.
The original modem was a Technicolor TC4400 · The new modem is a Sercomm DM1000
The router is a Hitron ARIA 2210 Wi-Fi 6 Beacon
The switch is a TP-Link 8 post Gigabit desktop switch
That is the order in which they are wired and all are in the basement mechanical room.
Two leads are hardwired to separate receptacles in my office upstairs. One hard wired lead goes to a Netgear router upstairs which is the router we use for Wifi.
All wiring was down in 2011 and are the same Cat number - probably Cat 5 (the wires are in the walls).
All speed testing was done with either the Wifi or the wired ethernet disabled. I used or Fast.com or Speedtest by Ookla for the tests (usually Speedtest). I have tested on both receptacles with 2 different Cat 5 cables.
The confusing part for me is that the Wifi router is connected to the switch with the same ethernet wiring as the office receptacles.
I have an internet plan that is rated for 1000 mbps and have previously got speeds of 850 mbps using the ethernet connections which makes me wonder if my Mac mini has a problem with its ethernet port. Incidentally, I have connected using the Ethernet connection on the Mac Mini and using the Thunderbolt Ethernet Slot.
Thanks for your help everyone.