You've not provided much information but, if the scan function doesn't work, the first thing to try is reinstalling the drivers. i.e. dig out the disk which came with the all-in-one device and reload the software from it. (If you can identify the driver software, just reinstall that. Otherwise, reinstall everything).
If that doesn't work, you might be able to get the device repaired or replaced by the retailer who supplied it. Electrical devices should normally be expected to work for 6 years. If you can show that the most likely cause of the problem is an 'inherent fault' (i.e. poor quality components or poor workmanship during manufacture), the retailer is obliged to provide a repair or replacement.
Chris