Chosen Solution
Hi, What is the make and model number of the tablet? It sounds as if the USB charge port is loose on the systemboard. Most USB ports in laptops, tablets, mobile phones etc. (not all) are a SMD (surface mounted device) type connector mounted directly onto the systemboard. You will need to have the requisite SMD soldering skills and tools to repair / replace the port. This is not a job for novices to try. You can cause more problems than what you had if you don’t know what you are doing. I recommend that you contact a reputable, professional mobile phone repair service and ask for a quote to repair / replace the port.