I want to restore a database but I am getting the following error, "The media family on device is incorrectly formed. SQL server can not process this media family. RESTORE HEADERONLY is terminating abnormally. Microsoft SQL server, Error: 3241".

It looks like, you are getting error message due to a mismatch of SQL server versions between the backup and restore. Generally, you can't restore a backup created using higher version to lower version.

Here is a Link that describing database versions and compatibility levels: