Welcome to Fishlore! Sorry is under such circumstances...
Can you give us more info? Is there anything visible on the outside like spots, grains, sores etc? Does it look bloated? Are the fins, eyes, gils looking fine? Can you post a pic of him? Is very hard to tell what's wrong from what you described, it can be anything...
Edit: just noticed you don't know about the
nitrogen cycle. Are you using any water detoxifiers or testers? You know what your levels of
ammonia,
nitrite or
nitrate are? Are you dechlorinating your water when you do water changes?
Sorry I ask so many questions but it would help us determine what's wrong with your guppy and maybe save his life.