What does ‘run out of gas’ mean?

( vp ) To lose interest or momentum. The politician ran out of gas during the campaign.