Who is the most important minister after the prime minister?

the defense minister

Depends upon which nation you're talking about- in Australia this may well be the case, but in the UK it's the Chancellor of the Exchequer. After the Chancellor it's the Deputy Prime Minister, and then the Home Secretary.