So I installed the drivers for my phone (Mediatek) and then I connected it through usb cable after which was recognized by my PC. I transferred some files from the PC to the phone and after it was done, I left it plugged into the PC for it to charge. After a few moments, I accidentally pulled the usb cable from the laptop's USB port. The device was still displayed on the taskbar (the one on the left side of the desktop) but when I tried to open it, it displayed an error message which stated that the device is not connected. I reconnected it again but my PC did not recognize it anymore.
EDIT: I already tried rebooting but still doesn't recognize my phone