The motor brushes in the washer connect the drum to the motor. Brushes have become old. The machine has water. The drainage is also perfect but the spinning action is not available. In this case, you have to seek help from an electrician.
Type the model of your machine to find the part(s) you need: