Original: A trio sonata is written for two solo melodic instruments and basso continuo, making three parts in all, hence the name trio sonata.
Simplified: A trio sonata is written for three voices (three parts), in other words, it can be played by three different instruments.