nissan 2003 Sentra

When I get in my car and the car interior is hot. The power windows do not work. After I use the fan or ac to cool the inside of the car they work. What is wrong, or how do I fix?