If $\bf x$ and $\bf b$ are given vectors in $\Bbb R^n$ and you want to find an $n\times n$ matrix $A$ such that $A\bf x=b$, you have to find the $n^2$ unknown entries of $A$ by solving $n$ linear equations. Such a system will never have a unique solution (except in the case $n=1$), so you cannot find a definite matrix $A$. In some cases there will be no solution (if $x$ or $b$ is the zero vector but $x\ne b$), in some cases there will be many solutions.
Addendum, for the revised question in which the determinant and the sum of entries in the matrix are knowm. For the case $n\ge3$ we still have more unknowns than equations and so we cannot expect a unique solution.
For the $2\times2$ case, suppose that $D$, the determinant of the matrix, and $S$, the sum of its entries, are given. If the entries of $\bf x$ are equal, then specifying the sum of the entries is either inconsistent, in which case there are no solutions, or redundant. In the latter case we solve two linear equations to find the four entries of $A$ in terms of two parameters; substituting into the equation for the determinant will in general give infinitely many solutions.
So, consider the following problem: find the matrix
$$A=\pmatrix{w&x\cr y&z\cr}\ ,$$
given that
$$A\pmatrix{a\cr b\cr}=\pmatrix{c\cr d\cr}\ ,\quad a\ne b\ ,\quad w+x+y+z=S\ ,\quad
wz-xy=D\ .$$
Now $a$ and $b$ are not both zero; without loss of generality assume that $a\ne0$. Then the system of three linear equations
$$aw+bx=c\ ,\quad ay+bz=d\ ,\quad w+x+y+z=S$$
has solutions
$$w=-bt+\frac{c}{a}\ ,\quad x=at\ ,\quad y=bt+\frac{d-bz_0}{a}\ ,\quad z=-at+z_0$$
where
$$z_0=\frac{aS-c-d}{a-b}\ ;$$
the system has nullity $1$, so this is in fact the general solution. Substituting into $wz-xy=D$ and simplifying, all the $t^2$ terms vanish and we have
$$(c+d)t=\frac{c}{a}\frac{aS-c-d}{a-b}-D\ .$$
This has a unique solution if $c+d\ne0$; no solution or infinitely many solutions if $c+d=0$; and accordingly we get a unique solution, no solution or infinitely many solutions for $A$.