I am confused that if investment is a type of saving or a expenditure .if investment is a type of expenditure then is saving is what is left after subtracting consumption and investment from income
In simplistic national accounts terms $$Y=C+I+X-M$$ is an expenditure identity while $$Y=C+S$$ is a use of income identity.
Implicitly this gives $$S-I=X-M$$ suggesting an excess of saving over investment in an open economy corresponds to a trade surplus in the current account, which in turn corresponds to an outflow in the financial account: the excess of savings over investment leads to an increase in overseas assets.
In a closed economy with no exports, imports or international financial flows, this forces $S=I$ and so no excess of saving over investment. Any production not used for consumption or normal investment has the effects either of increasing stocks (another form of investment) or of being valueless (so not counting towards income or saving).