maytag performa motor pulley melted and broke

My motor pulley is melted and broke. Motor spins freely in both directions. Water pump and pulley are fine. How do you take off the melted broken motor pulley and replace? I have a substitue part being as you have to purchase the whole motor to replace it. Like i said i have a spare pulley.