Okay, lets start with basics...
1. First thing i would do is look up what is known as the “Nitrogen Cycle in aquariums”, once you read that and get a basic grasp of whats going on you’ll have a better understanding on your tanks health...
2. Get yourself a Freshwater liquid master test kit by API from your local fish shop (LFS for short), and test your water to see what you are dealing with...
2a. If you dont want to test it yourself, you can bring a water sample to your LFS and see if they will test it for you... just make sure container is clean and contaminant free (this includes free of soap too)
3. Depending on what your water paramaters are like, you will probably need to do serveral water changes over the next few days or weeks till things balance out... this will also include sifting / stirring the substrate to remove organics trapped inside during water change...
4. Keep monitoring water parameters till everything is basically reading close to 0 except NitrAte which should read 1.0 or above normally after a week without water changes, then you’ll know your tank is more or less stable and the nitrogen cycle is working as intended...
5. From there, you will more than likely want to keep up with no less than 50% or more water changes per week which will include cleaning the substrate...
Then once all is said and done you should be able to enjoy some happy, healthy fish
