Ultrafast dynamics in gas-phase building blocks of life