The wall outlets and lights in 2 of my rooms in my house are not working
To me this sounds like a bad connection, if both rooms share a common wall and the receptacles are on that same wall it is very likely you have a loose connection on the neutral white or hot black , most common is a backstab failure the push in connectors. Usually the last working receptacle or first non working one is normally the location of the failure, you need to figure out where the feed comes from and find where the problem starts, work from the location that is closest to the breaker panel. The last working device or first non working is normally the point of failure.