well, when i do this marine, medevac rush and surely successfully kill some drones, queen then a minute later the enemy rushed me with mutalisk how can i counter this since im going some aggressive attack there with banshee and some viking and marines didn`t work at all
You can build an engee bay + turrets around your base. Also, if it's a base trade, then you will be on top no matter what. Mutas don't destroy buildings as fast as stimmed marines and reapers.
Proper scouting will serve you well. You should know he's going Mutas -- don't be caught blind and this won't happen to you. You can also desperately spread your SCVs while ensuring that none of his drones escape and re-establish yourself somewhere else as you trade bases!
Nah your best bet is to keep 2-3 turrets near the mineral line and fend him off as long as possible. If you force him into a desperation attack you should be okay. Try to put out a couple Vikings plus the Turrets and go immediately for a Thor. If you can keep him off your minerals long enough you should be able to counter it.
Blizzard is aiming for Terrans to go more mech. Try the Thor rush (search THOR IS HERE on youtube for a tutorial), its very effective and should be good against those mutas as well. To stop harass I +1 the turrets on the mineral line.