I accidentally put it on water, and later It wasn't charging anymore. I used some methods to fix this such as putting it in a bag of rice for one day and the next day I plugged in the charger and it showed up a blue screen saying "Downloading do not turn off target"
Read more: Why is my Samsung Galaxy s7 edge on Downloading Do not Turn off Target?