1. Check the fuses: Consult your owner's manual to locate the fuse(s) for the sunroof. Replace any blown fuses.
2. Inspect the sunroof motor: This requires some disassembly. You'll need to access the motor (likely located inside the headliner near the sunroof mechanism). Check for any obvious damage to the motor itself, or the connections to the motor. Look for broken wires, corrosion, or loose connections.
3. Examine the sunroof track and mechanism: The sunroof's smooth operation depends on the tracks being clean and free from debris. Clean the tracks and lubricate them with a silicone-based lubricant (not WD-40). Check for any obstructions that might be preventing the sunroof from moving smoothly. Look closely at the components that mechanically move the sunroof – they might be broken or jammed.
4. Test the sunroof switch: While less likely, the switch itself could be faulty. If you have a multimeter, you can test the switch's continuity when pressed. Otherwise, try swapping it with another switch (if you have one handy) – this assumes the switch is easily accessible.
5. Check the sunroof wiring harness: Carefully inspect the wiring harness running to the sunroof motor for any damaged or frayed wires. Repair or replace any damaged wires.
6. Consider a professional: If you're not comfortable working on car electronics or mechanical systems, take the car to a qualified mechanic or an auto electrician specialized in older vehicles. They have the tools and experience to diagnose the problem more effectively.
Important Note: The fact that the *manual* operation works suggests a problem with the electrical system (motor, switch, wiring, or fuse) rather than a mechanical jam. Focus your troubleshooting efforts on those areas. There's no "reset" button; you need to find and fix the underlying electrical or mechanical fault.