by rule of thumb, and for the simplicity of any question asked on the DAT:
the more electron withdrawing a group on a benzene ring is, the more acidic it will be...on the contrary, the more electron donating, the more basic.
to break it down even down farther, H+ groups (such as those in NH3) are elctron withdrawing, as compared to -OH which is electron withdrawing, but not to the same extent.