The 5' cap added to the front of the RNA molecule is essential for recognition and proper attachment of mRNA to the ribosome. It is also vital for protection from 5' exonucleases. It also influences other important functions like splicing and transport.
The 3' tail promotes export from the nucleus and translation, it also protects mRNA from degradation.