Pill or IUD?

Which is the best and why?