Look like he's in a bowl. I'm guessing, no heater.
And how many pellets are floating in that bowl? Take those out right away.. if they rot in there, that's a LOT of waste/ammonia.
Are you adding dechlorinator to the water? How often do you change his water?
Knowing basic care will help keep your fish happy and healthy. If he has fin rot (they do look a little ragged) there's ways to deal with that - Aquarium salt, not regular salt - BUT first we have to know what conditions he's in to begin with. And clean, conditioned water and proper feeding is essential to making him well.
So please answer the questions in this link.. this will help us figure out the best things for you to do: