Study of inclusive and exclusive $B rightarrow X_u l nu$ decay s and measurement of $|V_{ub}|$ with the {sc BaBar} detector