Sorry, I wasnt' clear.
If water isn't going into the cistern, its the inlet. If it is, but the cistern isn't filling then it's the discharge valve. And if it's filling - but the water won't stop running into the cistern, causing it to run into the overflow - then it's the inlet valve again.