We really need some more information.
This computer was originally released for sale in 2012, if your laptop was produced at this time it would now be six years old, getting long in the tooth for a computer.
Have you tried using a Ethernet cable to be sure that it works?
Have you accessed the Device Manager to see if there are any yellow warning icons or red error icons visible?
Have you tried uninstalling the Network Adapter in the Device Manger? If you do this and then restart the computer a new driver will be installed.
If none of this helps I would suggest going with a wifi dongle. Newegg has wifi adapters starting as low as $7.00 (US dollars).