If $V=U_1\oplus\cdots\oplus U_k$, combining a basis of each $U_i$ yields a basis of $V$. Spanning follows from the direct-sum decomposition. A relation among combined basis vectors groups into components, each of which must vanish; independence within each component then kills every coefficient.