You don't say what the “valve box” is for – loader? Is it an open-center valve – it has to be in order to work with these systems. A closed-center type valve will deadhead the pump because there is no continuous flow through it.
Assuming that you have the correct style and size of valve assembly for your purpose, my best guess would be that one of your quick-disconnects in the loader lines has failed or is not seated correctly – this also deadheads the system. Many owners simply remove the QC's entirely and just screw the lines together to avoid this – I purchased after-market QCs from Ronald at RanchHand Supply and replaced the Chinese ones just to be safe.
If it is neither of those causes, you'll need to go through the entire system, preferably with a pressure gauge, to determine where the deadhead is occurring.