Align the thermostatic valve with the power pipes so that they slide completely into the inlet pipes. Then screw the shower valve to the wall and tighten the holding nuts with an adjustable key. Turn on the stopcock (see that the shower valve is switched off first) and check the leaks in the inlet pipes.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.