Check the power icon on the taskbar. Does it show the battery charge state?
Download and run BatteryInfoView from https://www.nirsoft.net/utils/battery_information_view.html and see what it says about your battery. This will give a more detailed view. Also, see what it says about your old battery.
These are smart batteries. If it doesn't detect either then you've got a fault on the motherboard in the communications path to the battery.
Otherwise it should show the charge state. If it's showing as discharged and not charging, or as charging but the charge state never improving it would seem to be a problem with the charging circuit on your motherboard.
A motherboard fault would be difficult to diagnose and fix, but it may be simply that your new battery is a dud. BatteryViewInfo will hopefully tell you that. If so, go back to where you got it and ask for a replacement.