Does the LED light work?
No LED > Faulty charger
LED ON but no charging Battery or motherboard issue.
Plug into a different wall socket. Inspect the Charging Port.
Press and hold Power button for 30 seconds
Release
Wait 10 seconds
Press and hold Power + Volume Up together for 15 seconds
Release and wait 10 seconds
Turn it ON normally
Then plug charger again.
Try USB-C Charging if your device supports, (Surface Pro models from the Pro 7 onwards).
See:
Surface battery won’t charge or Surface won’t run on battery