Android firmware may malfunction sometimes in Samsung Galaxy S duos.
Uninstall unwanted apps from the device.
Go to Settings->Application Manager->Select 'Running' Tab.
Close unwanted process.because background process may slow up the device.
Backup all your data and get into recovery mode and wipe the device or select factory reset in settings.
Now,your device should work correctly.