Align the thermostatic valve with the feed tubes so that they complete the slides in the input tubes. Then screw the shower valve to the wall and tighten the holding pigs with an adjustable key. Reactivate the stopcock (make sure the shower valve is first disconnected) and check if it is lost in the input tubes.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.