like elx_06 says
1. remove camera flex and test the phone if works then problem is in it (already fixed 2 water damage phones like that)
2. if problem is camera flex remove camera gently with all block (green block cut the red dots gently) from metal case dont pull only camera becouse u can broke it)
3. clean all board + camera connectors under it and test again. good luck in my case it helped