If the dishwasher start filling when it was off you will need a new fill valve.
There should be a shut off valve under the sink to shut the water off to the dishwasher.
A new valve for the dishwasher is 30 to 40 dollars.
Remove the bottom panel of the dishwasher and you will see the valve in the front left corner.
You can get new Appliance parts