Why was there no direct heir to the throne?

There is a direct heir to the throne Prince Charles the Prince of Wales.