Existence and uniqueness of the solution to a 3D thermoviescoelastic system