The government can also buy things (like infrastructure) and employ people to provide public services, which directly injects money into the economy by paying it to the people who do that work.
The current UK government has not been doing much of this.