お願いしてもいいですか? means "can I ask you a favor", "can you do me a favor", "I'd like you to do this.
You can say this when you want to ask someone to do something for you.
I think "お願いしてもいいですか? " is polite, but if you want to be really really polite, you could say "お願いしたいのですが、よろしいでしょうか?"
You could say "お願いできる?", "お願いしてもいい?" to your friends.