Welcome. My name is ***** ***** would be glad to assist.
Do you have a 2 lead voltage tester with readout? If not, need to borrow one or purchase one at a building supply.
Unless you can follow each wire all the way to the panel breaker.
Need to go to the point where all those wires originate so that we can determine each of the wires purpose.
It appears that you have 3 circuits here, one for disposal, one for dishwasher and one for the receptacles on countertop.
So, first we have to determine by each wire and find its associated breaker in the panel.
If you measure between a white and a color, red or black, then flipping each breaker, you should be able to isoolate each one and hopefully the breaker is labeled accordingly to signify the circuit.
Then we can determine the proper wiring for the 3 circuits.
The dishwasher and disposal should be sharing a double pole breaker based on the wires shown, so they might be easy to locate
Maybe there is another junction box in the basement area to access also?
Let me know and we can continue.