Hello, GdW-9812.
Based on the information you provided, the most likely cause is either a malfunction of the charging socket on the Surface, or damage to the line from the socket to the battery controller. In any case, it is better to contact a service center for hardware diagnostics and repair.