Try with different USB devices on all the USB ports of your Notebook. Check if those devices which is not detecting in the Laptop, working on other systems.
(If one of the three is not working, then its a hardware issue). If all the ports are not working, you can try the following steps.
1. Disconnect the AC Adapter.
2. Remove the Battery.
3. Hold the Power button down for 30 seconds to 1 minute.
4. Reconnect the AC adapter and do NOT connect the battery now.
5. Turn on the Notebook power.
2. Update your BIOS:
a) Open www.hp.com
in the search field type your Laptop product number (eg:AB123UA), can be found on the sticker pasted on the bottom of the Laptop.
b) Click on Software & Drivers
c) Select the Operating System (Make sure you are using pre-installed OS only)
Note: Do not install BIOS on retail or changed OS
d) Install BIOS and restart.
3. Re-install USB entries
1. Save and close all programs that are currently running.
2. Click Start, select Shut Down, and choose Restart the computer.
3. Press the F8 function key or the Ctrl key when the HP logo appears. This will display the Windows Startup menu.
4. Select option 3 to load Windows in Safe mode.
5. After Windows loads in Safe mode, Click Start and select Control Panel.
6. Double-click the system icon. If the System icon is not found directly under Control Panel, click the Performance and Maintenance icon and then click the System icon.
7. The System properties Window opens. You can open the System Properties window directly by pressing the Windows key and Pause/Break key simultaneously.
8. Select the Hardware tab and click the Device Manager button.
9. In the Device Manager Window, double-click the Universal Serial Bus controllers.
10. Right-click the device listed under Universal Serial Bus controller and select Uninstall.
11. Click OK to confirm the removal of the device.
Restarting the notebook will automatically install the drivers.
That's it. If there is no luck, your Laptop required an onsite diagnose. Contact HP or local service center.