If $X$ is disconnected, so $X = A \cup B$ where $A$ and $B$ are disjoint non-empty closed (and open) subsets. What is $\operatorname{Bd}(A)$?
Suppose $A$ is non-empty and suppose $\operatorname{Bd}(A) = \emptyset$; as the boundary of $A$ is the difference between closure and interior of $A$, we have that these coincide and so $A$ is clopen. So $X = A \cup \ldots $ proves $X$ is disconnected.