At the night I have the problem with focus
It looks like your camera is fine, if you took those pictures after you dropped your camera. That's good!
A lot of cameras have trouble auto focusing in the dark (or whenever there is low contrast). Try focusing with your focus point on something bright - like one of those boats - and keep the shutter button pushed halfway down while you compose the picture the way you want it. Then press the shutter all the way down to take the photo. This is called the "
focus and recompose" technique, and is very useful in many situations. I think it will help you with night shots like this. (Also, if you set up your Nikon to have "back button focus", it will make it even easier. Look it up if you don't do this already.)
So the good news is that your camera still seems to work! The night time focus is probably just a matter of changing your technique. I do not think it's a problem with your camera.
Ζήτω!
All the best