The MPS4250 is manufactured in a plastic TO-92 case. When looking at the flat side with the leads pointed downward, the three leads emerging from the transistor are, from left to right, the emitter, base, and collector leads. Here is an image showing the pin diagram of this transistor.
SMD Version of MPS4250 transistor
The KST5087 (SOT-23) and MMBT5087 (SOT-23) is the SMD version of the MPS4250 transistor. These transistors are of the same type, have similar parameters and are designed for surface mounting.