World 5 unlocks automatically after beating World 4's castle. There's no shortcut or hidden requirement.
Each world has 8–10 levels + tower + castle. If you're stuck, use Star Coins to unlock mushroom houses for power-ups, or watch a walkthrough for the specific boss.