How Can I Learn To Listen To A Foreign Language?

How can I learn a language when I have no one to talk to?

.

Can you learn a foreign language just by listening to it?

What is the best way to learn a foreign language?

Can you learn a language by listening to it while you sleep?