Every contract has its own storage, which you can picture as a huge array of 32-byte slots numbered from 0.
Contracts talk through call data, a block of bytes.