  We consider the Hamburger, Stieltjes and Hausdorff moment problems, that are
problems of the construction of a Borel measure supported on a real line, on a
half-line or on an interval $(0,1)$, from a prescribed set of moments. We
propose a unified approach to these three problems based on using the auxiliary
dynamical system with the discrete time associated with a semi-infinite Jacobi
matrix. It is show that the set of moments determines the inverse dynamic data
for such a system. Using the ideas of the Boundary Control method for every
$N\in \mathbb{N}$ we can recover the spectral measure of a $N\times N$ block of
Jacobi matrix, which is a solution to a truncated moment problem. This problem
is reduced to the finite-dimensional generalized spectral problem, whose
matrices are constructed from moments and are connected with well-known Hankel
matrices by simple formulas. Thus the results on existence of solutions to
Hamburger, Stieltjes and Hausdorff moment problems are naturally given in terms
of these matrices. We also obtain results on uniqueness of the solution of
moment problems, where as a main tool we use the Krein-type equations of
inverse problem.
