Order cancelled help

When pending order is cancelled due to insufficient funds how does that work when you think you have bought the shares and are waiting for the market to open ?