Your nitrATES are at 5ppm or your nitITES? If you have nitrates that means 1 of two things, either there's nitrates in your tap water (you should test it) or your nitrites are being converted by bacteria.
Have you introduced untreated tap water or any meds or other chemicals into the tank? That can certainly whipe out your good bacteria causing the cycle to repeat itself. How long has your ammonia been at 6-7ppm? If it's only been a day or two you're probably witnessing the ammonia spike, if there's fish in there do a 20% water change to make things a bit safer for them and just wait it out, within a few more days it should plummet down to zero and your nitrites should start to rise.
Without knowing your timeframe (what levels the ammonia has been at the past few weeks) along with nitrite and nitrate levels it's impossible to say if your cycle is in a funk or going strong. A water change may be needed to kickstart if if it's stuck.