The first image below shows a diagram of your dishwasher components. When you start a cycle, or a cycle fills with water, the fill valve should be energized to open for 87 seconds. Time the fill to make sure that it stays energized for this amount of time. If it is not staying energized for the 87 seconds, then you would need to replace the timer.
A problem with the water pressure coming from the water supply line could cause a fill problem. Make sure that the cut-off valve for your water supply to the dishwasher if fully open. If you are able to disconnect electrical power (turn off the breaker) and access the fill valve, you can turn off the water supply and disconnect the water supply hose to check the inlet valve screen for a clog or debris that could be restricting water flow. You should attempt this procedure only if you are completely confident that you can safely complete the process. Make sure that fittings are properly reassembled and properly tightened. Use teflon tape on the threads of fittings to prevent leaking.
If you pull the water supply hose to check the inlet screen, use a container to catch water and check for proper water pressure from the hose by briefly turning on the water supply valve. If you are not getting proper pressure, you will probably need a plumber to resolve this water supply issue.
If you find no problems after checking the issues noted above, then it is possible that the inlet water valve has failed and will need to replaced.
An improper water fill is probably causing the soap to stay clumped in the dispenser. Resolving your water fill issue will likely solve this detergent problem.
If you sense that the dishwasher is draining the water too quickly during the cycle, use the timing chart below to check the cycles. According to the chart, initial wash and or rinse cycles last only 7.5 minutes. Subsequent wash and rinse cycles last between 10 and 18 minutes. If the timer is not working properly according to this cycle chart, then it will need to be replaced.
If you need more help with this dishwasher problem, resubmit your question with additional details.