With all that jumble of wiring
it's impossible to see what wire is connected to what....
But the black box has a hose connected to it, so it's either a pump
( if it has wiring
connected) or it's a strainer box for a remote
. Follow the hose and see where it goes.