Car issues….toyota cam

I have a 1998 Toyota Cam….my car was running fine then all of a sudden the check engine light came on and my car stopped. I checked my oil and it was low so I added some oil and the car started, however now the car shakes and will not drive over 20mph. If I accelerate the gas I hear a banging sound. Im trying to figure out if the car is worth saving.