Those are relays.
Go on YouTube and pick your favorite “how to test a relay” video and run with it.
I’ve never had a relay go out but if I though one was bad I’d just move a relay, that I know is good, to that spot and if the component it controls works, you know the original relay was bad.