You cannot use the classical 'method of moments' method to estimate
parameters of a distribution without knowing the distribution and
its parameters.
Examples. For data $X_1, X_2, \dots, X_n$ from a normal population the method of
moments estimator (MME) of the population mean $\mu$ is the sample mean $\bar X$
and the population variance $S^2$ is the MME of the sample variance $\sigma^2.$
By contrast, for data from an exponential distribution, the population mean $\mu$ and
SD $\sigma$ are the same, and so the MME of both $\mu$ and $\sigma$ would be
$\bar X.$ (You could use $S$ to estimate $\sigma$ but it wouldn't be as good.)
Moreover, for data from a population distributed $\mathsf{Unif}(0, \theta)$,
the population mean $\mu = \theta/2$ so the MME of $\theta$ is $2\bar X.$
(However, the maximum likelihood estimator, based on the maximum observation,
is better according to some important criteria for 'goodness' of estimators.)
You could use $S^2$ to estimate $\sigma^2 = \theta^2/12$, but this is not
a particularly good estimator (and not an MME according to the usual
definition).
In summary, it really helps to know what the population parameters are, if you are going to estimate them using the method of moments (or the method of maximum likelihood).
Nonparametric testing and estimation. However, without detailed knowledge of the population distribution
you might use a sample mean, median, standard deviation, upper quartile, etc. to get a
point estimate of the population mean, median, standard deviation, upper quartile, etc. (There might be better estimators, but you would have no way
to know.)
You can also use modern computer intensive methods such as bootstrapping
and (simulated) permutation tests to find confidence intervals for
the population mean, median, or standard deviation, and to test
hypotheses about these population characteristics.
Because these methods
do not require you to know the population distribution or its parameters,
these methods are often called nonparametric. Examples of traditional
nonparametric methods, based on ranks, to estimate or test hypotheses
about population medians are the Wilcoxon signed rank (one-sample) and
rank sum (two-sample) procedures.