If you slept in a bed before you died, the bed still exists, and there is enough space on it for you to respawn, you will respawn there. Otherwise you will respawn at your initial spawn point.  Dying from lava doesn't change this.