Sony Experia E5 microphone only produces static when I talk
Rub over the microphone hole with a magnet.

This will work if there is metallic dust stuck to your microphone, or if the cone is stuck inverted. The magnet can dislodge the metallic dust and force the cone to move. 

If that doesn't work, bring the device in to a repair facility. It might be physically damaged.