Hi:
replacing the motor is an involved process. Because of that, I recommend purchasing a repair manual. It will provide step by step instructions and pictures to help identify parts. There is too much room for error for me to explain.
Repair Safety Notice: This information is for general instructional purposes only. Vehicle repair can be dangerous. Verify all information, follow manufacturer service procedures, use proper tools and safety equipment, and consult a qualified repair shop when needed.