Observation and control of intramolecular dynamics of gas-phase molecules by ultrafast laser pulses