'''There are no software fixes for hardware issues.''' From your description you have torqued the USB ports lose from the logic board. ''They may be repaired by a competent repairman/shop. '''This is not a DIY project'''. ''Soldering computer logic boards requires special tools, solder and lots & lots of practice in order to not destroy the board.
''If this answer is acceptable '''please remember to return and mark it'''.''