First, its a matter of resolution. What we see as cells, or as organelles, at higher and higher magnification are reduced to molecules and atoms. Thus "form" is ultimately based on the chemicals in our bodies.
Function is an aspect of the chemical properties. Thus we have organelles like chloroplasts and mitochondria that have sequences of enzymes that make up the structure, and that structure makes the function of those organelles very efficient. Imagine what would happen if those same chemicals were distributed randomly within the cell.
In many ways, your question is like anatomy and physiology (structure and function). If we could understand fully the chemical basis of the structure (anatomy), we could predict its function (physiology)
Emeritus Biology Professor