Connecting a DualShock 3 (PS3 controller) to Windows Vista requires third-party drivers, as Microsoft never provided native support.
Check the driver's official documentation/forums for Vista-specific instructions, as support for Vista has ended.