If the drain pipe has/is inserted too far, the seal at the bottom is forced up slightly, which prevents the cistern filling up as the water escapes into the internal overflow. Isolate water supply, empty cistern, loosen the compression fixing and ease the pipe out slightly until the seal shuts. Tighten the compression fixing etc.
Martin, July 2008