$EX=\infty$ for all $n\ge3$. Indeed, the gaps $G_1,\dots,G_{n-1}$ between the adjacent points are jointly distributed as $\frac{H_1}{H_1+\dots+H_{n-1}},\dots,\frac{H_{n-1}}{H_1+\dots+H_{n-1}}$, where the $H_i$'s are iid standard exponential random variables. So, $X=B/A$ equals $V/U$ in distribution, where $V:=\max_{i\le n-1}H_i$ and $U:=\min_{i\le n-1}H_i$. The joint pdf of $(U,V)$ is $$f(u,v)=(n-1)(n-2)1_{0<u<v}(e^{-u}-e^{-v})^{n-3}e^{-u}e^{-v}. $$ So, $$EX=(n-1)(n-2)\int_0^\infty dv\int_0^v du \frac vu\,(e^{-u}-e^{-v})^{n-3}e^{-u}e^{-v}=\infty $$ because $$\int_0^v du \frac1u\,(e^{-u}-e^{-v})^{n-3}e^{-u}=\infty $$ for all real $v>0$.