The Current Account
The current account is a broader measure that includes trade in goods, trade in services, income earned on investments abroad, and transfer payments (like remittances). A country can run a goods deficit but a services surplus — as the UK does, for example, given its large financial services and professional services exports.
The current account balance has to be offset by the capital account: if a country imports more than it exports, foreigners are accumulating that country's currency and assets. This capital inflow finances the deficit.