If I get your question correctly, you are asking if you can charge your Ledger Nano S? No, you can not charge Ledger Nano S because the hardware wallet does not come with a battery that can be used to charge it. But it will work directly with your laptop.
If you are asking the reason the hardware wallet is not working when connected to your laptop, read this:
https://support.ledger.com/article/115005165269-zd, maybe it can help.