The main difference between these two phrases is that asking a favor implies that the person doing the asking already knows the person they are asking and doesn't require anything from them, while requesting something implies that the person doing the requesting wants or needs something from the person they are asking.