How do I determine if it is the pump or the motor?
Here are your parts
Replacement parts for WHIRLPOOL KUDS24SEAL2 | AppliancePartsPros.com
Here is the tech sheet
https://www.servicematters.com/docs/wiring/Tech%20Sheet%20-%209743409.pdf
You need to do more troubleshooting as to what exactly is happening.
Is the motor running when it should be pumping, does it do the wash OK, etc.
If motor runs then you may just have a blocked drain hose.
First you need to turn electricity to dishwasher off. Then you need to check the drain hose where it connects to drain line. Sometimes they are clogged there. If it is not clogged there, then you need to take the bottom cover off of the front. Take the drain hose off of the pump. Be prepared to catch some water in a shallow drain pan. The plastic piece the drain hose was connected to could have something stuck in it. This piece can be removed by unscrewing it counter clockwise. If there is nothing in it then you probably have a bad pump. The pump and motor comes as one piece. I hope this helps you.