Enable the console in the game settings. Press the tilde key (~) to open the console. Use the command playdemo to start playing the demo, where is the name of your demo file.