The fact that your washing isn't draining away the water could be due to the fact that there is something clogging the pump, or the draining hose which is attached to the pump. If this is the case, you must remove the draining hose from the pump in order to remove anything which could be clogging your machine - this could be a sock or other small piece of clothing, and it quite common.
If neither your pump nor your draining hose is clogged, it could be that there is a problem with the pump itself. Maybe the pump's internal impeller has broken. If this is the case, it is probably easier and safer to buy a replacement pump from a whirlpool provider, or to hire a professional to try to repair your pump.
If you washer is neither draining nor spinning, there could be a problem with your pump pulley. You can check whether or not your pump pulley is functioning by removing it from the pump and trying to rotate it with your hands. If this does not work, then your pump pulley is stuck, or "frozen" and you need to replace the pump.
If these suggestions do not apply to you, then your best bet is to get in contact with the nearest whirlpool manufacturer or service center. They should be able to advise you about what the problem is with your washer, and tell you how to solve it.