Describe the interval(s) on which the function is continuous. Explain why the function is continuous on the interval(s). If the function has a discontinuity, identify the conditions of continuity that are not satisfied.
$$
f(x)=\left\{\begin{array}{ll}{3+x,} & {x \leq 2} \\ {x^{2}+1,} & {x>2}\end{array}\right.
$$