If you are still hearing noises in your attic, you have not sealed EVERY entrance. Effective
rat control begins with sealing every hole. Rats can only live for about 3 days without water. If you sealed every hole, the rats would be dead within a week for sure. Remember, rats can squeeze through a hole a half inch in diameter or bigger.
Have you noticed any of the foam scratched away from where you sealed? If it is squirrels, traps in the attic will not work.
Squirrel control is slightly different, as you will have to use one-way doors to exclude them out of the attic. Double check your home to make sure you've sealed all the possible entrances (i.e. soffits, ridge vents, a/c chase, construction gaps, gable vents, etc)
If all else falls, call the pros!