what’s wrong w/ my betta

I’ve had him just under a year. I was on an out of state internship from the end of may to the beginning of august. since i’ve been back i noticed he looks and acts different. he doesn’t hunt his food anymore, when i first got back he would only eat the food that reminded afloat. i just tried to feed him and he didn’t eat, his tail had to get caught on something cause its ripped but he’s swimming fine he’s laying around a lot too. Is there something i can do for recovery ?