You keep all your items and XP when you die. Everything is still in your inventory when you respawn at your bed or at spawn, so there’s no need to run back.

There’s no command that shows where you died. Press F3 to see your coordinates.

If something really is missing, ask in #support on Discord.