In this paper, a numerical study of three-dimensional (3D) natural convection air-cooling of two identical heat sources, simulating electronic components, mounted in a rectangular enclosure was carried out. The governing equations were solved by using the finite-volume method based on the SIMPLER algorithm. The effects of Rayleigh number Ra, spacing between heat sources d, and aspect ratios Ax in x-direction (horizontal) and Az in *z*-direction (transversal) of the enclosure on heat transfer were investigated. In steady state, when *d* is increased, the heat transfer is more important than when the aspect ratios Ax and Az are reduced. In oscillatory state, the critical Rayleigh numbers Ra_{cr} for different values of spacing between heat sources and their aspect ratios, at which the flow becomes time dependent, were obtained. Results show a strong relation between heat transfers, buoyant flow, and boundary layer. In addition, the heat transfer is more important at the edge of each face of heat sources than at the center region.